aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorDimitre Liotev <dl@liotev.com>2016-01-21 08:10:41 +0200
committerSergey M․ <dstftw@gmail.com>2016-01-21 22:55:36 +0600
commit582f4f834e5cb6fc783eeb51bd977aa237330e79 (patch)
tree31dcef6d0fbb47ce59ba2cc749b0dec9cc473821 /youtube_dl
parente87d98b0ddbb2cfa873b4d0c13c751bb12224290 (diff)
Fix issue #8109 (error when downloading automatic captions)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/youtube.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index d31161d21..567877920 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -964,6 +964,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
try:
args = player_config['args']
caption_url = args['ttsurl']
+ if caption_url is None or caption_url == "" or caption_url.isspace():
+ self._downloader.report_warning("No automatic captions")
+ return {}
timestamp = args['timestamp']
# We get the available subtitles
list_params = compat_urllib_parse.urlencode({