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

[srgssr] add popupvideoplayer support #21155

Closed
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
13 changes: 12 additions & 1 deletion youtube_dl/extractor/srgssr.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def _real_extract(self, url):

class SRGSSRPlayIE(InfoExtractor):
IE_DESC = 'srf.ch, rts.ch, rsi.ch, rtr.ch and swissinfo.ch play sites'
_VALID_URL = r'https?://(?:(?:www|play)\.)?(?P<bu>srf|rts|rsi|rtr|swissinfo)\.ch/play/(?:tv|radio)/[^/]+/(?P<type>video|audio)/[^?]+\?id=(?P<id>[0-9a-f\-]{36}|\d+)'
_VALID_URL = r'https?://(?:(?:www|play)\.)?(?P<bu>srf|rts|rsi|rtr|swissinfo)\.ch/play/(?:tv|radio)/(?:[^/]+/|popup)(?P<type>video|audio)(?:/[^?]+|player)\?id=(?P<id>[0-9a-f\-]{36}|\d+)'
basicmaster marked this conversation as resolved.
Show resolved Hide resolved

_TESTS = [{
'url': 'http://www.srf.ch/play/tv/10vor10/video/snowden-beantragt-asyl-in-russland?id=28e1a57d-5b76-4399-8ab3-9097f071e6c5',
Expand Down Expand Up @@ -163,6 +163,17 @@ class SRGSSRPlayIE(InfoExtractor):
# m3u8 download
'skip_download': True,
}
}, {
'url': 'https://www.srf.ch/play/tv/popupvideoplayer?id=c4dba0ca-e75b-43b2-a34f-f708a4932e01',
'md5': 'f6247aa7c905b81c9ba7f50fb22e2fbd',
'info_dict': {
'id': 'c4dba0ca-e75b-43b2-a34f-f708a4932e01',
'ext': 'mp4',
'upload_date': '20190122',
'title': 'Erster Selfie-Stick (1983)',
'description': 'md5:23a6b40024e583137e4137f5946543c1',
'timestamp': 1548155133,
basicmaster marked this conversation as resolved.
Show resolved Hide resolved
}
}]

def _real_extract(self, url):
Expand Down