Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bigmarker] Add new extractor #26838

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions youtube_dl/extractor/bigmarker.py
Original file line number Diff line number Diff line change
@@ -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'),
}
1 change: 1 addition & 0 deletions youtube_dl/extractor/extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
from .bet import BetIE
from .bfi import BFIPlayerIE
from .bigflix import BigflixIE
from .bigmarker import BigMarkerIE
from .bild import BildIE
from .bilibili import (
BiliBiliIE,
Expand Down