aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>2009-09-21 20:39:51 +0200
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-10-31 11:24:56 +0100
commit583c714fdebdc8d0c3234aba2343803057d99e38 (patch)
tree3b7aa8354829e3dea6642410fc6289f22bffddf4
parent850ab76560f7a7b9274dd382cf3a5a75a7bb3c8d (diff)
Allow empty titles because they do appear in some videos (fixes issue #53)
-rwxr-xr-xyoutube-dl2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube-dl b/youtube-dl
index 03609e22c..f57343ea8 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