mirror of
https://github.com/l1ving/youtube-dl
synced 2024-11-20 16:52:54 +08:00
[fix] JS player extraction again
This commit is contained in:
parent
5167567de0
commit
ae4bbff637
@ -1971,7 +1971,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
|
||||
if cipher:
|
||||
if 's' in url_data or self._downloader.params.get('youtube_include_dash_manifest', True):
|
||||
ASSETS_RE = [r'"assets":.+?"js":\s*("[^"]+")', r'"jsUrl":("[^"]+")']
|
||||
ASSETS_RE = (
|
||||
r'<script[^>]+\bsrc=("[^"]+")[^>]+\bname=["\']player_ias/base',
|
||||
r'"jsUrl"\s*:\s*("[^"]+")',
|
||||
r'"assets":.+?"js":\s*("[^"]+")')
|
||||
jsplayer_url_json = self._search_regex(
|
||||
ASSETS_RE,
|
||||
embed_webpage if age_gate else video_webpage,
|
||||
|
Loading…
Reference in New Issue
Block a user