Allow empty titles because they do appear in some videos (fixes issue #53)
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>
Mon, 21 Sep 2009 18:39:51 +0000 (20:39 +0200)
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>
Sun, 31 Oct 2010 10:24:56 +0000 (11:24 +0100)
youtube-dl

index 03609e22ca8d8cde4f1a92db1fbb0f81a3de57cb..f57343ea80f17cfa7523f4be91a5fc5f57c02278 100755 (executable)
@@ -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