mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-22 08:34:32 +01:00
[bigmarker] Add new extractor
This commit is contained in:
parent
605535776a
commit
5e0ea2c703
30
youtube_dl/extractor/bigmarker.py
Normal file
30
youtube_dl/extractor/bigmarker.py
Normal file
@ -0,0 +1,30 @@
|
||||
# coding: utf-8
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from .common import InfoExtractor
|
||||
|
||||
|
||||
class BigMarkerIE(InfoExtractor):
|
||||
_VALID_URL = r'https?://(?:www\.)?bigmarker\.com/recordings/(?P<id>[a-z0-9]+)'
|
||||
_TEST = {
|
||||
'url': 'https://www.bigmarker.com/recordings/478333acea6e',
|
||||
'md5': '8efb9380119651972481f6974e0c8c06',
|
||||
'info_dict': {
|
||||
'id': '478333acea6e',
|
||||
'ext': 'mp4',
|
||||
'title': '478333acea6e',
|
||||
'url': 'https://d5ln38p3754yc.cloudfront.net/F508IZuncdvJ37XKHei8/32165f6e-4fae-4262-9f16-aa7f53142305.mp4?1602110695315',
|
||||
'author': 'Pulumi',
|
||||
}
|
||||
}
|
||||
|
||||
def _real_extract(self, url):
|
||||
video_id = self._match_id(url)
|
||||
webpage = self._download_webpage(url, video_id)
|
||||
|
||||
return {
|
||||
'id': video_id,
|
||||
'title': video_id,
|
||||
'author': self._search_regex(r'qaClubName:\s*(["\'])(?P<clubName>.+)\1', webpage, 'author', group='clubName', default=None),
|
||||
'url': self._search_regex(r'mp4Url:\s*(["\'])(?P<url>http.+)\1', webpage, 'url', group='url'),
|
||||
}
|
@ -99,6 +99,7 @@ from .beatport import BeatportIE
|
||||
from .bet import BetIE
|
||||
from .bfi import BFIPlayerIE
|
||||
from .bigflix import BigflixIE
|
||||
from .bigmarker import BigMarkerIE
|
||||
from .bild import BildIE
|
||||
from .bilibili import (
|
||||
BiliBiliIE,
|
||||
|
Loading…
Reference in New Issue
Block a user