aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-01-02 20:46:17 +0600
committerSergey M․ <dstftw@gmail.com>2015-01-02 20:46:17 +0600
commitdb546cf87fa4206e55f66ddcc041dcd12fe708c8 (patch)
treede03891038cfa47743e5ac34ef7401a26857a6ac
parent317639758a0f1728e6e1d612800b6eab69261e89 (diff)
[generic] Add support for BBC iPlayer embeds (Closes #4619)
-rw-r--r--youtube_dl/extractor/generic.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index 40b2791c7..ce1e77daa 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -905,6 +905,11 @@ class GenericIE(InfoExtractor):
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: