Skip to content

Commit

Permalink
Merge pull request ytdl-org#35 from peet1993/youtube_js_url_fix
Browse files Browse the repository at this point in the history
Fixed problem with JS player URL
  • Loading branch information
blackjack4494 authored Oct 28, 2020
2 parents 6f8557e + 67b1979 commit ba2136c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dlc/extractor/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ba2136c

Please sign in to comment.