0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-26 02:55:17 +00:00

[bilibili] Make anthology title non-fatal

This commit is contained in:
pukkandan 2022-01-24 20:58:32 +05:30
parent 88f23a18e0
commit 2568d41f70
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698

View file

@ -252,7 +252,7 @@ def _real_extract(self, url):
title = self._html_search_regex( title = self._html_search_regex(
(r'<h1[^>]+\btitle=(["\'])(?P<title>(?:(?!\1).)+)\1', (r'<h1[^>]+\btitle=(["\'])(?P<title>(?:(?!\1).)+)\1',
r'(?s)<h1[^>]*>(?P<title>.+?)</h1>'), webpage, 'title', r'(?s)<h1[^>]*>(?P<title>.+?)</h1>'), webpage, 'title',
group='title') group='title', fatal=False)
# Get part title for anthologies # Get part title for anthologies
if page_id is not None: if page_id is not None: