mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-23 02:32:16 +00:00
Fix FunnyOrDie extraction for a special video (#789)
This commit is contained in:
parent
32c96387c1
commit
bfdf469295
1 changed files with 3 additions and 1 deletions
|
@ -3704,7 +3704,9 @@ class FunnyOrDieIE(InfoExtractor):
|
||||||
|
|
||||||
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:
|
if not m:
|
||||||
self._downloader.trouble(u'Cannot find video title')
|
m = re.search(r'<title>(?P<title>[^<]+?)</title>', webpage)
|
||||||
|
if not m:
|
||||||
|
self._downloader.trouble(u'Cannot find video title')
|
||||||
title = clean_html(m.group('title'))
|
title = clean_html(m.group('title'))
|
||||||
|
|
||||||
m = re.search(r'<meta property="og:description" content="(?P<desc>.*?)"', webpage)
|
m = re.search(r'<meta property="og:description" content="(?P<desc>.*?)"', webpage)
|
||||||
|
|
Loading…
Reference in a new issue