projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
300148b
)
[extractor/common] Improve jwplayer subtitles extraction (closes #15695)
author
Sergey M․
<dstftw@gmail.com>
Sat, 24 Feb 2018 17:59:29 +0000
(
00:59
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 24 Feb 2018 17:59:29 +0000
(
00:59
+0700)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index ff62b5cf3c122eb267007599532f96e7cb178717..fcdd0fd14a85a12690031b409058d932a3d4e4db 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-2353,7
+2353,10
@@
class InfoExtractor(object):
for track in tracks:
if not isinstance(track, dict):
continue
- if track.get('kind') != 'captions':
+ track_kind = track.get('kind')
+ if not track_kind or not isinstance(track_kind, compat_str):
+ continue
+ if track_kind.lower() not in ('captions', 'subtitles'):
continue
track_url = urljoin(base_url, track.get('file'))
if not track_url: