From: Sergey M․ Date: Thu, 15 Jun 2017 16:40:39 +0000 (+0700) Subject: [extractor/common] Improve jwplayer subtitles extraction X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=96a2daa1ee5de9ddff5d0180fccb8376725de60c;p=youtube-dl [extractor/common] Improve jwplayer subtitles extraction --- 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'))