[ie/BoomplayEpisode] Make title extraction non-fatal

Co-authored-by: dirkf <fieldhouse@gmx.net>
This commit is contained in:
dirkf 2024-10-23 23:58:57 +13:00
parent 0f9b09842e
commit 8a1daf41ab

View File

@ -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'),