Update yt_dlp/extractor/bilibili.py

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

View File

@ -655,6 +655,7 @@ class BiliBiliIE(BilibiliBaseIE):
if video_data.get('is_upower_exclusive'):
high_level = traverse_obj(initial_state, ('elecFullInfo', 'show_info', 'high_level'))
raise ExtractorError(
'This is a supporter-only video: '
f'{join_nonempty("title", "sub_title", from_dict=high_level, delim="")}. '
f'{self._login_hint()}', expected=True)