0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-30 03:33:02 +00:00

Merge pull request #35 from peet1993/youtube_js_url_fix

Fixed problem with JS player URL
This commit is contained in:
Tom-Oliver Heidel 2020-10-28 12:08:26 +01:00 committed by GitHub
commit ba2136cba2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2051,7 +2051,7 @@ def _extract_filesize(media_url):
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,