projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3176397
)
[generic] Add support for BBC iPlayer embeds (Closes #4619)
author
Sergey M․
<dstftw@gmail.com>
Fri, 2 Jan 2015 14:46:17 +0000
(20:46 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 2 Jan 2015 14:46:17 +0000
(20:46 +0600)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index 40b2791c77351a8625894f709187b3ccfb8e1939..ce1e77daad5607e0ac91a1004b86c7620d6a455f 100644
(file)
--- 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: