mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-24 13:46:53 +01:00
[arte.tv:embed] Extended support (#2620)
This commit is contained in:
parent
0f56bd2178
commit
134c207e3f
@ -337,7 +337,7 @@ class ArteTVEmbedIE(ArteTVPlus7IE):
|
|||||||
IE_NAME = 'arte.tv:embed'
|
IE_NAME = 'arte.tv:embed'
|
||||||
_VALID_URL = r'''(?x)
|
_VALID_URL = r'''(?x)
|
||||||
http://www\.arte\.tv
|
http://www\.arte\.tv
|
||||||
/playerv2/embed\.php\?json_url=
|
/(?:playerv2/embed|arte_vp/index)\.php\?json_url=
|
||||||
(?P<json_url>
|
(?P<json_url>
|
||||||
http://arte\.tv/papi/tvguide/videos/stream/player/
|
http://arte\.tv/papi/tvguide/videos/stream/player/
|
||||||
(?P<lang>[^/]+)/(?P<id>[^/]+)[^&]*
|
(?P<lang>[^/]+)/(?P<id>[^/]+)[^&]*
|
||||||
|
@ -1128,6 +1128,18 @@ class GenericIE(InfoExtractor):
|
|||||||
'skip_download': True,
|
'skip_download': True,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
# Another form of arte.tv embed
|
||||||
|
{
|
||||||
|
'url': 'http://www.tv-replay.fr/redirection/09-04-16/arte-reportage-arte-11508975.html',
|
||||||
|
'md5': '850bfe45417ddf221288c88a0cffe2e2',
|
||||||
|
'info_dict': {
|
||||||
|
'id': '030273-562_PLUS7-F',
|
||||||
|
'ext': 'mp4',
|
||||||
|
'title': 'ARTE Reportage - Nulle part, en France',
|
||||||
|
'description': 'md5:e3a0e8868ed7303ed509b9e3af2b870d',
|
||||||
|
'upload_date': '20160409',
|
||||||
|
},
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
def report_following_redirect(self, new_url):
|
def report_following_redirect(self, new_url):
|
||||||
@ -1702,7 +1714,7 @@ def _playlist_from_matches(matches, getter=None, ie=None):
|
|||||||
|
|
||||||
# Look for embedded arte.tv player
|
# Look for embedded arte.tv player
|
||||||
mobj = re.search(
|
mobj = re.search(
|
||||||
r'<script [^>]*?src="(?P<url>http://www\.arte\.tv/playerv2/embed[^"]+)"',
|
r'<(?:script|iframe) [^>]*?src="(?P<url>http://www\.arte\.tv/(?:playerv2/embed|arte_vp/index)[^"]+)"',
|
||||||
webpage)
|
webpage)
|
||||||
if mobj is not None:
|
if mobj is not None:
|
||||||
return self.url_result(mobj.group('url'), 'ArteTVEmbed')
|
return self.url_result(mobj.group('url'), 'ArteTVEmbed')
|
||||||
|
Loading…
Reference in New Issue
Block a user