summary refs log tree commit diff
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
parent0ea6efbb7a1434b83c871577845383a472324cb5 (diff)
downloadyoutube-dl-96a2daa1ee5de9ddff5d0180fccb8376725de60c.tar.gz
youtube-dl-96a2daa1ee5de9ddff5d0180fccb8376725de60c.tar.xz
youtube-dl-96a2daa1ee5de9ddff5d0180fccb8376725de60c.zip
[extractor/common] Improve jwplayer subtitles extraction
-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'))