Browse Source

[extractor/common] Improve jwplayer subtitles extraction (closes #15695)

master-ytdl-org
Sergey M․ 7 years ago
parent
commit
f4b7427279
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      youtube_dl/extractor/common.py

+ 4
- 1
youtube_dl/extractor/common.py View File

@ -2353,7 +2353,10 @@ class InfoExtractor(object):
for track in tracks:
if not isinstance(track, dict):
continue
if track.get('kind') != 'captions':
track_kind = track.get('kind')
if not track_kind or not isinstance(track_kind, compat_str):
continue
if track_kind.lower() not in ('captions', 'subtitles'):
continue
track_url = urljoin(base_url, track.get('file'))
if not track_url:


Loading…
Cancel
Save