Skip to content

A feature-rich command-line audio/video downloader

Allow empty titles because they do appear in some videos (fixes issue #53)

Ricardo Garcia583c714fdebd
diff --git a/youtube-dl b/youtube-dl
index 03609e22ca..f57343ea80 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -719,7 +719,7 @@ class YoutubeIE(InfoExtractor):
video_uploader = urllib.unquote(mobj.group(1))
# title
- mobj = re.search(r'(?m)&title=([^&]+)(?:&|$)', video_info_webpage)
+ mobj = re.search(r'(?m)&title=([^&]*)(?:&|$)', video_info_webpage)
if mobj is None:
self._downloader.trouble(u'ERROR: unable to extract video title')
return