Browse Source

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

master
Ricardo Garcia 15 years ago
parent
commit
583c714fde
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube-dl

2
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

Loading…
Cancel
Save