aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-10-02 07:25:35 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-10-02 07:25:35 +0200
commita8c6b2415535054862235a7286ac03db474c95a0 (patch)
tree34de71c25746a1b08ad9612c6a021b0aecf1e574 /youtube_dl
parentbd8e5c7ca286418e1e4162d7be6f3a30be581e87 (diff)
downloadyoutube-dl-a8c6b2415535054862235a7286ac03db474c95a0.tar.xz
[youtube] Support videos without a title (Fixes #1391, Closes #1542)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/youtube.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 6580d8bf8..89e3d0f74 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -1334,9 +1334,11 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
self._downloader.report_warning(u'unable to extract uploader nickname')
# title
- if 'title' not in video_info:
- raise ExtractorError(u'Unable to extract video title')
- video_title = compat_urllib_parse.unquote_plus(video_info['title'][0])
+ if 'title' in video_info:
+ video_title = compat_urllib_parse.unquote_plus(video_info['title'][0])
+ else:
+ self._downloader.report_warning(u'Unable to extract video title')
+ video_title = u'_'
# thumbnail image
# We try first to get a high quality image: