1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-30 11:46:57 +00:00

Fixed problem with JS player URL

The JS player URL could not be found anymore, possibly because of a change on Youtubes side.
This commit is contained in:
Peter Oettig 2020-10-27 20:39:49 +01:00
parent 6f8557ec4d
commit 67b19799a5

View file

@ -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,