projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ce7e39
)
added Youtube embed detection to WorldstarIE
author
Johny Mo Swag
<johnymo@me.com>
Tue, 25 Jun 2013 01:58:49 +0000
(18:58 -0700)
committer
Johny Mo Swag
<johnymo@me.com>
Tue, 25 Jun 2013 01:58:49 +0000
(18:58 -0700)
youtube_dl/extractor/worldstarhiphop.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/worldstarhiphop.py
b/youtube_dl/extractor/worldstarhiphop.py
index 54a77b69699439a3409280cdab7cbbac5b743069..f628e4fb1e6dfb6ba6293c29e956e34c37d46a35 100644
(file)
--- a/
youtube_dl/extractor/worldstarhiphop.py
+++ b/
youtube_dl/extractor/worldstarhiphop.py
@@
-16,6
+16,10
@@
class WorldStarHipHopIE(InfoExtractor):
video_url = self._search_regex(r'so\.addVariable\("file","(.*?)"\)',
webpage_src, u'video URL')
+ if 'youtube' in video_url:
+ self.to_screen(u'Youtube video detected:')
+ return self.url_result('%s' % video_url, ie='Youtube')
+
if 'mp4' in video_url:
ext = 'mp4'
else: