mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-24 20:25:52 +01:00
[turner] Skip invalid subtitles' URLs
This commit is contained in:
parent
3fb2a23029
commit
5a80e7b43a
@ -140,7 +140,7 @@ def _extract_cvp_info(self, data_src, video_id, path_data={}):
|
||||
for source in video_data.findall('closedCaptions/source'):
|
||||
for track in source.findall('track'):
|
||||
track_url = track.get('url')
|
||||
if not track_url:
|
||||
if not isinstance(track_url, compat_str) or track_url.endswith('/big'):
|
||||
continue
|
||||
lang = track.get('lang') or track.get('label') or 'en'
|
||||
subtitles.setdefault(lang, []).append({
|
||||
|
Loading…
Reference in New Issue
Block a user