mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-01 22:47:59 +00:00
fix for detecting youtube embedded videos.
This commit is contained in:
parent
8b50fed04b
commit
ed54491c60
1 changed files with 6 additions and 1 deletions
|
@ -15,7 +15,12 @@ class HotNewHipHopIE(InfoExtractor):
|
||||||
webpage_src = self._download_webpage(url, video_id)
|
webpage_src = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
video_url_base64 = self._search_regex(r'data-path="(.*?)"',
|
video_url_base64 = self._search_regex(r'data-path="(.*?)"',
|
||||||
webpage_src, u'video URL')
|
webpage_src, u'video URL', fatal=False)
|
||||||
|
|
||||||
|
if video_url_base64 == None:
|
||||||
|
video_url = self._search_regex(r'"contentUrl" content="(.*?)"', webpage_src,
|
||||||
|
u'video URL')
|
||||||
|
return self.url_result(video_url, ie='Youtube')
|
||||||
|
|
||||||
video_url = base64.b64decode(video_url_base64)
|
video_url = base64.b64decode(video_url_base64)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue