mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-23 02:26:37 -05:00
[phoenix] Extend _VALID_URL (#5322)
This commit is contained in:
parent
c808ef81bb
commit
edd7344820
@ -5,8 +5,13 @@ from .zdf import extract_from_xml_url
|
|||||||
|
|
||||||
|
|
||||||
class PhoenixIE(InfoExtractor):
|
class PhoenixIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://(?:www\.)?phoenix\.de/content/(?P<id>[0-9]+)'
|
_VALID_URL = r'''(?x)https?://(?:www\.)?phoenix\.de/content/
|
||||||
_TEST = {
|
(?:
|
||||||
|
phoenix/die_sendungen/(?:[^/]+/)?
|
||||||
|
)?
|
||||||
|
(?P<id>[0-9]+)'''
|
||||||
|
_TESTS = [
|
||||||
|
{
|
||||||
'url': 'http://www.phoenix.de/content/884301',
|
'url': 'http://www.phoenix.de/content/884301',
|
||||||
'md5': 'ed249f045256150c92e72dbb70eadec6',
|
'md5': 'ed249f045256150c92e72dbb70eadec6',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
@ -17,7 +22,16 @@ class PhoenixIE(InfoExtractor):
|
|||||||
'upload_date': '20141025',
|
'upload_date': '20141025',
|
||||||
'uploader': 'Im Dialog',
|
'uploader': 'Im Dialog',
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
'url': 'http://www.phoenix.de/content/phoenix/die_sendungen/869815',
|
||||||
|
'only_matching': True,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'url': 'http://www.phoenix.de/content/phoenix/die_sendungen/diskussionen/928234',
|
||||||
|
'only_matching': 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