aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom-Oliver Heidel <github@tom-oliver.eu>2020-10-28 12:08:26 +0100
committerGitHub <noreply@github.com>2020-10-28 12:08:26 +0100
commitba2136cba29cc6f3ebc44cd6840bb3f851826eed (patch)
tree043784e57ffc684937a89f60c69543eada021445
parent6f8557ec4db627bdd2fda4f47bc2492a04ce5d0d (diff)
parent67b19799a5cc8ab24aa48de66cea4e2ad41315a8 (diff)
downloadhypervideo-pre-ba2136cba29cc6f3ebc44cd6840bb3f851826eed.tar.lz
hypervideo-pre-ba2136cba29cc6f3ebc44cd6840bb3f851826eed.tar.xz
hypervideo-pre-ba2136cba29cc6f3ebc44cd6840bb3f851826eed.zip
Merge pull request #35 from peet1993/youtube_js_url_fix
Fixed problem with JS player URL
-rw-r--r--youtube_dlc/extractor/youtube.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dlc/extractor/youtube.py b/youtube_dlc/extractor/youtube.py
index 4fb49b864..ccfaa733d 100644
--- a/youtube_dlc/extractor/youtube.py
+++ b/youtube_dlc/extractor/youtube.py
@@ -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,