mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-10 12:52:52 +08:00
[konserthusetplay] Add support for the english version rspoplay.se
This commit is contained in:
parent
af59bddc4e
commit
b8a22b6997
@ -11,22 +11,35 @@ from ..utils import (
|
|||||||
|
|
||||||
|
|
||||||
class KonserthusetPlayIE(InfoExtractor):
|
class KonserthusetPlayIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://(?:www\.)?konserthusetplay\.se/\?.*\bm=(?P<id>[^&]+)'
|
_VALID_URL = r'https?://(?:www\.)?(?:konserthusetplay|rspoplay)\.se/\?.*\bm=(?P<id>[^&]+)'
|
||||||
_TEST = {
|
_TESTS = [{
|
||||||
'url': 'http://www.konserthusetplay.se/?m=CKDDnlCY-dhWAAqiMERd-A',
|
'url': 'http://www.konserthusetplay.se/?m=CKDDnlCY-dhWAAqiMERd-A',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': 'CKDDnlCY-dhWAAqiMERd-A',
|
'id': 'CKDDnlCY-dhWAAqiMERd-A',
|
||||||
'ext': 'flv',
|
'ext': 'mp4',
|
||||||
'title': 'Orkesterns instrument: Valthornen',
|
'title': 'Orkesterns instrument: Valthornen',
|
||||||
'description': 'md5:f10e1f0030202020396a4d712d2fa827',
|
'description': 'md5:f10e1f0030202020396a4d712d2fa827',
|
||||||
'thumbnail': 're:^https?://.*$',
|
'thumbnail': 're:^https?://.*$',
|
||||||
'duration': 398.8,
|
'duration': float,
|
||||||
},
|
},
|
||||||
'params': {
|
'params': {
|
||||||
# rtmp download
|
# rtmp download
|
||||||
'skip_download': True,
|
'skip_download': True,
|
||||||
},
|
},
|
||||||
}
|
}, {
|
||||||
|
'url': 'http://rspoplay.se/?m=elWuEH34SMKvaO4wO_cHBw',
|
||||||
|
'info_dict': {
|
||||||
|
'id': 'elWuEH34SMKvaO4wO_cHBw',
|
||||||
|
'ext': 'mp4',
|
||||||
|
'title': 'The Seven Wonders of the World',
|
||||||
|
'description': 'md5:18c6ca150b79e77bb6050d7da1e737b8',
|
||||||
|
'thumbnail': 're:^https?://.*$',
|
||||||
|
'duration': float,
|
||||||
|
},
|
||||||
|
'params': {
|
||||||
|
'skip_download': True,
|
||||||
|
},
|
||||||
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
|
Loading…
Reference in New Issue
Block a user