From 96a2daa1ee5de9ddff5d0180fccb8376725de60c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Thu, 15 Jun 2017 23:40:39 +0700 Subject: [PATCH] [extractor/common] Improve jwplayer subtitles extraction --- youtube_dl/extractor/common.py | 2 ++ 1 file changed, 2 insertions(+) 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 @@ def _parse_jwplayer_data(self, jwplayer_data, video_id=None, require_title=True, 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'))