projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fb2a23
)
[turner] Skip invalid subtitles' URLs
author
Sergey M․
<dstftw@gmail.com>
Mon, 29 Aug 2016 15:44:15 +0000
(22:44 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 29 Aug 2016 15:44:15 +0000
(22:44 +0700)
youtube_dl/extractor/turner.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/turner.py
b/youtube_dl/extractor/turner.py
index 6df22fd24af7e7bacd81da4c33d8796a6e7364b4..f5736bd155979a8de005e71431c8060c9556d115 100644
(file)
--- a/
youtube_dl/extractor/turner.py
+++ b/
youtube_dl/extractor/turner.py
@@
-140,7
+140,7
@@
class TurnerBaseIE(InfoExtractor):
for source in video_data.findall('closedCaptions/source'):
for track in source.findall('track'):
track_url = track.get('url')
- if not
track_url
:
+ if not
isinstance(track_url, compat_str) or track_url.endswith('/big')
:
continue
lang = track.get('lang') or track.get('label') or 'en'
subtitles.setdefault(lang, []).append({