projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bd8e5c7
)
[youtube] Support videos without a title (Fixes #1391, Closes #1542)
author
Philipp Hagemeister
<phihag@phihag.de>
Wed, 2 Oct 2013 05:25:35 +0000
(07:25 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Wed, 2 Oct 2013 05:25:35 +0000
(07:25 +0200)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 6580d8bf8782d47000d9452d687836c28cd4acbd..89e3d0f743ab8d85c46757b6df46971b52b449d5 100644
(file)
--- 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
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:
# thumbnail image
# We try first to get a high quality image: