mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-21 23:33:10 +00:00
Merge pull request #35 from peet1993/youtube_js_url_fix
Fixed problem with JS player URL
This commit is contained in:
commit
ba2136cba2
1 changed files with 1 additions and 1 deletions
|
@ -2051,7 +2051,7 @@ 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*("[^"]+")'
|
||||
ASSETS_RE = r'(?:"assets":.+?"js":\s*("[^"]+"))|(?:"jsUrl":\s*("[^"]+"))'
|
||||
jsplayer_url_json = self._search_regex(
|
||||
ASSETS_RE,
|
||||
embed_webpage if age_gate else video_webpage,
|
||||
|
|
Loading…
Reference in a new issue