aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-06-15 23:40:39 +0700
committerSergey M․ <dstftw@gmail.com>2017-06-15 23:40:39 +0700
commit96a2daa1ee5de9ddff5d0180fccb8376725de60c (patch)
tree82098b01dd300f8d6ef7b34ab2ff315dda444cf7 /youtube_dl/extractor
parent0ea6efbb7a1434b83c871577845383a472324cb5 (diff)
[extractor/common] Improve jwplayer subtitles extraction
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 6e415ea41..9751ab021 100644
--- a/youtube_dl/extractor/common.py
+++ b/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'))