mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 14:37:21 +00:00
[ie/BoomplayEpisode] Make title extraction non-fatal
Co-authored-by: dirkf <fieldhouse@gmx.net>
This commit is contained in:
parent
0f9b09842e
commit
8a1daf41ab
|
@ -274,7 +274,7 @@ def _real_extract(self, url):
|
||||||
webpage = self._download_webpage(url, ep_id)
|
webpage = self._download_webpage(url, ep_id)
|
||||||
return merge_dicts(
|
return merge_dicts(
|
||||||
self._extract_page_metadata(webpage, ep_id), {
|
self._extract_page_metadata(webpage, ep_id), {
|
||||||
'title': self._og_search_title(webpage, fatal=True).rsplit('|', 2)[0].strip(),
|
'title': self._og_search_title(webpage, default='').rsplit('|', 2)[0].strip() or None,
|
||||||
'description': self._html_search_meta(
|
'description': self._html_search_meta(
|
||||||
['description', 'og:description', 'twitter:description'], webpage),
|
['description', 'og:description', 'twitter:description'], webpage),
|
||||||
'formats': self._extract_formats(ep_id, 'EPISODE', vcodec='none'),
|
'formats': self._extract_formats(ep_id, 'EPISODE', vcodec='none'),
|
||||||
|
|
Loading…
Reference in a new issue