From: Philipp Hagemeister Date: Thu, 18 Apr 2013 04:21:46 +0000 (+0200) Subject: Fix FunnyOrDie extraction for a special video (#789) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=bfdf4692955b3ea300b8f6ae30b8b69127922f7e;p=youtube-dl Fix FunnyOrDie extraction for a special video (#789) --- diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index 306d96774..cf31970ef 100755 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -3704,7 +3704,9 @@ class FunnyOrDieIE(InfoExtractor): m = re.search(r"

(?P.*?)</h1>", webpage, flags=re.DOTALL) if not m: - self._downloader.trouble(u'Cannot find video title') + m = re.search(r'<title>(?P<title>[^<]+?)', webpage) + if not m: + self._downloader.trouble(u'Cannot find video title') title = clean_html(m.group('title')) m = re.search(r'