1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-28 10:36:50 +00:00

[extractor/common] Improve jwplayer subtitles extraction

This commit is contained in:
Sergey M․ 2017-06-15 23:40:39 +07:00
parent 0ea6efbb7a
commit 96a2daa1ee
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -2299,6 +2299,8 @@ class InfoExtractor(object):
tracks = video_data.get('tracks')
if tracks and isinstance(tracks, list):
for track in tracks:
if not isinstance(track, dict):
continue
if track.get('kind') != 'captions':
continue
track_url = urljoin(base_url, track.get('file'))