projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8399267
)
[generic] Generalize BBC iPlayer playlist extraction
author
Sergey M․
<dstftw@gmail.com>
Fri, 2 Jan 2015 14:55:09 +0000
(20:55 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 2 Jan 2015 14:55:09 +0000
(20:55 +0600)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index 4bb7581ace594dd11e7f4abd2bea0143dd13b5e0..fd4ee46671129fc111e1859d35533f4608c565ce 100644
(file)
--- a/
youtube_dl/extractor/generic.py
+++ b/
youtube_dl/extractor/generic.py
@@
-908,7
+908,7
@@
class GenericIE(InfoExtractor):
# 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]
)
+ return
_playlist_from_matches(matches, ie='BBCCoUk'
)
# Look for embedded RUTV player
rutv_url = RUTVIE._extract_url(webpage)