projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ea6efb
)
[extractor/common] Improve jwplayer subtitles extraction
author
Sergey M․
<dstftw@gmail.com>
Thu, 15 Jun 2017 16:40:39 +0000
(23:40 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 15 Jun 2017 16:40:39 +0000
(23:40 +0700)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 6e415ea41c35e773650d41b274c3a33c6b589b78..9751ab02129a7d31a6a458190019067d5998963a 100644
(file)
--- 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'))