Pārlūkot izejas kodu

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

Ricardo Garcia 16 gadi atpakaļ
vecāks
revīzija
583c714fde
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      youtube-dl

+ 1 - 1
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