Skip to content

Commit

Permalink
[YouTube] Endure subtitle URLs are complete
Browse files Browse the repository at this point in the history
* WEB URLs are, MWEB not
* resolves #33017
  • Loading branch information
dirkf committed Jan 6, 2025
1 parent 00ad2b8 commit 1036478
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions youtube_dl/extractor/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -2435,6 +2435,7 @@ def process_subtitles():
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':
Expand Down

0 comments on commit 1036478

Please sign in to comment.