0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-27 03:03:01 +00:00

[arte:creative] Support more URLs (fixes #3572)

This commit is contained in:
Philipp Hagemeister 2014-08-24 02:57:31 +02:00
parent 614582bcc4
commit 01d906ffe9

View file

@ -177,16 +177,24 @@ def _format(format_info):
# It also uses the arte_vp_url url from the webpage to extract the information # It also uses the arte_vp_url url from the webpage to extract the information
class ArteTVCreativeIE(ArteTVPlus7IE): class ArteTVCreativeIE(ArteTVPlus7IE):
IE_NAME = 'arte.tv:creative' IE_NAME = 'arte.tv:creative'
_VALID_URL = r'https?://creative\.arte\.tv/(?P<lang>fr|de)/magazine?/(?P<id>.+)' _VALID_URL = r'https?://creative\.arte\.tv/(?P<lang>fr|de)/(?:magazine?/)?(?P<id>[^?#]+)'
_TEST = { _TESTS = [{
'url': 'http://creative.arte.tv/de/magazin/agentur-amateur-corporate-design', 'url': 'http://creative.arte.tv/de/magazin/agentur-amateur-corporate-design',
'info_dict': { 'info_dict': {
'id': '050489-002', 'id': '72176',
'ext': 'mp4', 'ext': 'mp4',
'title': 'Agentur Amateur / Agence Amateur #2 : Corporate Design', 'title': 'Folge 2 - Corporate Design',
'upload_date': '20131004',
}, },
}, {
'url': 'http://creative.arte.tv/fr/Monty-Python-Reunion',
'info_dict': {
'id': '160676',
'ext': 'mp4',
'title': 'Monty Python live (mostly)',
} }
}]
class ArteTVFutureIE(ArteTVPlus7IE): class ArteTVFutureIE(ArteTVPlus7IE):