diff options
author | Jaime Marquínez Ferrándiz <[email protected]> | 2013-06-25 22:07:31 +0200 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <[email protected]> | 2013-06-25 22:08:58 +0200 |
commit | a545d1d2625081ab92a5223efdd42c1fddb87b58 (patch) | |
tree | 27cbc6cc316237c282d6dbca55721b4b837fe8c2 | |
parent | 037fcd00470044b90566899ed0f9b9491cae0b8e (diff) | |
parent | d18596baf4e85509c6320b5749b613de88e594de (diff) | |
download | youtube-dl-a545d1d2625081ab92a5223efdd42c1fddb87b58.tar.gz youtube-dl-a545d1d2625081ab92a5223efdd42c1fddb87b58.zip |
Merge pull request #922 from JohnyMoSwag/master
Added embedded youtube detection to WorldstarIE
-rw-r--r-- | youtube_dl/extractor/worldstarhiphop.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/extractor/worldstarhiphop.py b/youtube_dl/extractor/worldstarhiphop.py index 54a77b696..531d0889f 100644 --- 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(video_url, ie='Youtube') + if 'mp4' in video_url: ext = 'mp4' else: |