Browse Source
[extractor/common] Improve jwplayer subtitles extraction
master
Sergey M․
7 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
2 additions and
0 deletions
-
youtube_dl/extractor/common.py
|
|
@ -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')) |
|
|
|