From 6a82b63f29dc3014038d79f814477a33b0189aa8 Mon Sep 17 00:00:00 2001 From: Dominika Date: Thu, 29 Oct 2020 11:08:31 -0400 Subject: [PATCH] [fix] Unable to extract JS player URL Closes #12 --- youtube_dl/extractor/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 95849ef45..1e0a8f991 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1955,7 +1955,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*("[^"]+")', r'"jsUrl":("[^"]+")' ] jsplayer_url_json = self._search_regex( ASSETS_RE, embed_webpage if age_gate else video_webpage,