From 1036478d130c5f2001eca2d7d12558abe601d933 Mon Sep 17 00:00:00 2001 From: dirkf Date: Mon, 6 Jan 2025 01:39:04 +0000 Subject: [PATCH] [YouTube] Endure subtitle URLs are complete * WEB URLs are, MWEB not * resolves #33017 --- youtube_dl/extractor/youtube.py | 1 + 1 file changed, 1 insertion(+) diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 56957a661..6171df84a 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -2435,6 +2435,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): subtitles = {} for caption_track in traverse_obj(pctr, ( 'captionTracks', lambda _, v: v.get('baseUrl'))): + base_url = self._yt_urljoin(caption_track['baseUrl']) if not base_url: continue if caption_track.get('kind') != 'asr':