mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-01 09:02:57 +01:00
[escapist] Fix extraction (fixes #5017)
This commit is contained in:
parent
e14ced7918
commit
3da0db62e6
@ -22,6 +22,7 @@ class EscapistIE(InfoExtractor):
|
|||||||
'uploader_id': 'the-escapist-presents',
|
'uploader_id': 'the-escapist-presents',
|
||||||
'uploader': 'The Escapist Presents',
|
'uploader': 'The Escapist Presents',
|
||||||
'title': "Breaking Down Baldur's Gate",
|
'title': "Breaking Down Baldur's Gate",
|
||||||
|
'thumbnail': 're:^https?://.*\.jpg$',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,9 +41,8 @@ def _real_extract(self, url):
|
|||||||
raw_title = self._html_search_meta('title', webpage, fatal=True)
|
raw_title = self._html_search_meta('title', webpage, fatal=True)
|
||||||
title = raw_title.partition(' : ')[2]
|
title = raw_title.partition(' : ')[2]
|
||||||
|
|
||||||
player_url = self._og_search_video_url(webpage, name='player URL')
|
config_url = compat_urllib_parse.unquote(self._html_search_regex(
|
||||||
config_url = compat_urllib_parse.unquote(self._search_regex(
|
r'<param name="flashvars" value="config=([^"&]+)', webpage, 'config URL'))
|
||||||
r'config=(.*)$', player_url, 'config URL'))
|
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
|
|
||||||
@ -81,5 +81,4 @@ def _add_format(name, cfgurl, quality):
|
|||||||
'title': title,
|
'title': title,
|
||||||
'thumbnail': self._og_search_thumbnail(webpage),
|
'thumbnail': self._og_search_thumbnail(webpage),
|
||||||
'description': description,
|
'description': description,
|
||||||
'player_url': player_url,
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user