mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-03-17 05:22:22 +09:00
Better fix for getting source url's
This commit is contained in:
parent
edd70010dc
commit
57cf2636d7
@ -3625,7 +3625,7 @@ class WorldStarHipHopIE(InfoExtractor):
|
|||||||
IE_NAME = u'WorldStarHipHop'
|
IE_NAME = u'WorldStarHipHop'
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
_src_url = r"""(http://(hw-videos|hw-post)[0-9]*.*(?:mp4|flv))"""
|
_src_url = r'so\.addVariable\("file","(.*?)"\)'
|
||||||
|
|
||||||
webpage_src = compat_urllib_request.urlopen(url).read()
|
webpage_src = compat_urllib_request.urlopen(url).read()
|
||||||
webpage_src = webpage_src.decode('utf-8')
|
webpage_src = webpage_src.decode('utf-8')
|
||||||
@ -3636,7 +3636,7 @@ class WorldStarHipHopIE(InfoExtractor):
|
|||||||
video_id = m.group('id')
|
video_id = m.group('id')
|
||||||
|
|
||||||
if mobj is not None:
|
if mobj is not None:
|
||||||
video_url = mobj.group()
|
video_url = mobj.group(1)
|
||||||
if 'mp4' in video_url:
|
if 'mp4' in video_url:
|
||||||
ext = 'mp4'
|
ext = 'mp4'
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user