mirror of
https://gitlab.com/dstftw/youtube-dl.git
synced 2020-11-16 09:42:26 +00:00
[youtube] Fix JS player URL extraction
This commit is contained in:
parent
416da574ec
commit
6d4733ce7b
|
@ -2086,7 +2086,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||||
|
|
||||||
if cipher:
|
if cipher:
|
||||||
if 's' in url_data or self._downloader.params.get('youtube_include_dash_manifest', True):
|
if 's' in url_data or self._downloader.params.get('youtube_include_dash_manifest', True):
|
||||||
ASSETS_RE = r'"assets":.+?"js":\s*("[^"]+")'
|
ASSETS_RE = (
|
||||||
|
r'<script[^>]+\bsrc=("[^"]+")[^>]+\bname=["\']player_ias/base',
|
||||||
|
r'"jsUrl"\s*:\s*("[^"]+")',
|
||||||
|
r'"assets":.+?"js":\s*("[^"]+")')
|
||||||
jsplayer_url_json = self._search_regex(
|
jsplayer_url_json = self._search_regex(
|
||||||
ASSETS_RE,
|
ASSETS_RE,
|
||||||
embed_webpage if age_gate else video_webpage,
|
embed_webpage if age_gate else video_webpage,
|
||||||
|
|
Loading…
Reference in a new issue