summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2016-08-29 22:44:15 +0700
committerSergey M․ <[email protected]>2016-08-29 22:44:15 +0700
commit5a80e7b43a7abc83e104f1cd711d8fe7985c30eb (patch)
treeed6577f4f956b5585b899fdafb973fde202973fd
parent3fb2a23029934dcbf6fe2cd283d851506dcdff5e (diff)
downloadyoutube-dl-5a80e7b43a7abc83e104f1cd711d8fe7985c30eb.tar.gz
youtube-dl-5a80e7b43a7abc83e104f1cd711d8fe7985c30eb.zip
[turner] Skip invalid subtitles' URLs
-rw-r--r--youtube_dl/extractor/turner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/turner.py b/youtube_dl/extractor/turner.py
index 6df22fd24..f5736bd15 100644
--- 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({