mirror of
https://gitlab.com/dstftw/youtube-dl.git
synced 2020-11-16 09:42:26 +00:00
Fix FunnyOrDie extraction for a special video (#789)
This commit is contained in:
parent
32c96387c1
commit
bfdf469295
|
@ -3703,6 +3703,8 @@ class FunnyOrDieIE(InfoExtractor):
|
||||||
video_url = unescapeHTML(m.group('url'))
|
video_url = unescapeHTML(m.group('url'))
|
||||||
|
|
||||||
m = re.search(r"<h1 class='player_page_h1'.*?>(?P<title>.*?)</h1>", webpage, flags=re.DOTALL)
|
m = re.search(r"<h1 class='player_page_h1'.*?>(?P<title>.*?)</h1>", webpage, flags=re.DOTALL)
|
||||||
|
if not m:
|
||||||
|
m = re.search(r'<title>(?P<title>[^<]+?)</title>', webpage)
|
||||||
if not m:
|
if not m:
|
||||||
self._downloader.trouble(u'Cannot find video title')
|
self._downloader.trouble(u'Cannot find video title')
|
||||||
title = clean_html(m.group('title'))
|
title = clean_html(m.group('title'))
|
||||||
|
|
Loading…
Reference in a new issue