mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-11-09 12:32:38 +01:00
added Youtube embed detection to WorldstarIE
This commit is contained in:
parent
7ce7e39476
commit
d18596baf4
@ -16,6 +16,10 @@ class WorldStarHipHopIE(InfoExtractor):
|
|||||||
video_url = self._search_regex(r'so\.addVariable\("file","(.*?)"\)',
|
video_url = self._search_regex(r'so\.addVariable\("file","(.*?)"\)',
|
||||||
webpage_src, u'video URL')
|
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:
|
if 'mp4' in video_url:
|
||||||
ext = 'mp4'
|
ext = 'mp4'
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user