瀏覽代碼

[YouTube] Endure subtitle URLs are complete
* WEB URLs are, MWEB not
* resolves #33017

dirkf 11 月之前
父節點
當前提交
1036478d13
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      youtube_dl/extractor/youtube.py

+ 1 - 0
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':