commit ae4bbff637a7e30fca6cd1db3e16490318a1747f
parent 5167567de0cf95bc2735ab9da5bf74cd33822c9c
Author: Dominika <sokolov.dominika@gmail.com>
Date:   Sun,  1 Nov 2020 12:06:39 -0500

[fix] JS player extraction again

Diffstat:
Myoutube_dl/extractor/youtube.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py @@ -1971,7 +1971,10 @@ 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*("[^"]+")', r'"jsUrl":("[^"]+")'] + ASSETS_RE = ( + r'<script[^>]+\bsrc=("[^"]+")[^>]+\bname=["\']player_ias/base', + r'"jsUrl"\s*:\s*("[^"]+")', + r'"assets":.+?"js":\s*("[^"]+")') jsplayer_url_json = self._search_regex( ASSETS_RE, embed_webpage if age_gate else video_webpage,