浏览代码

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

Ricardo Garcia 16 年之前
父节点
当前提交
583c714fde
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube-dl

+ 1 - 1
youtube-dl

@@ -719,7 +719,7 @@ class YoutubeIE(InfoExtractor):
 			video_uploader = urllib.unquote(mobj.group(1))
 			video_uploader = urllib.unquote(mobj.group(1))
 
 
 			# title
 			# title
-			mobj = re.search(r'(?m)&title=([^&]+)(?:&|$)', video_info_webpage)
+			mobj = re.search(r'(?m)&title=([^&]*)(?:&|$)', video_info_webpage)
 			if mobj is None:
 			if mobj is None:
 				self._downloader.trouble(u'ERROR: unable to extract video title')
 				self._downloader.trouble(u'ERROR: unable to extract video title')
 				return
 				return