1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 17:22:31 +01:00

[generic] Add support for BBC iPlayer embeds (Closes #4619)

This commit is contained in:
Sergey M․ 2015-01-02 20:46:17 +06:00
parent 317639758a
commit db546cf87f

View File

@ -905,6 +905,11 @@ def _playlist_from_matches(matches, getter, ie=None):
return _playlist_from_matches(
matches, getter=unescapeHTML, ie='FunnyOrDie')
# Look for BBC iPlayer embed
matches = re.findall(r'setPlaylist\("(https?://www\.bbc\.co\.uk/iplayer/[^/]+/[\da-z]{8})"\)', webpage)
if matches:
return self.playlist_result([self.url_result(video_url, ie='BBCCoUk') for video_url in matches])
# Look for embedded RUTV player
rutv_url = RUTVIE._extract_url(webpage)
if rutv_url: