Update yt_dlp/extractor/bilibili.py

This commit is contained in:
N/Ame 2024-12-02 10:34:22 +13:00 committed by GitHub
parent 9944c0c7aa
commit 06a5a3768f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -654,10 +654,8 @@ class BiliBiliIE(BilibiliBaseIE):
if video_data.get('is_upower_exclusive'):
high_level = traverse_obj(initial_state, ('elecFullInfo', 'show_info', 'high_level'))
support_title = traverse_obj(high_level, 'title', default='')
support_subtitle = traverse_obj(high_level, 'sub_title', default='')
raise ExtractorError(
f'This is a supporter-only video: {support_title}{support_subtitle}. '
f'{join_nonempty("title", "sub_title", from_dict=high_level, delim="")}. '
f'{self._login_hint()}', expected=True)
video_id, title = video_data['bvid'], video_data.get('title')