[ie/BilibiliSpace] better error message

This commit is contained in:
fireattack 2024-05-02 18:04:39 +08:00
parent ac817bc83e
commit aba42660f9

View file

@ -1052,6 +1052,9 @@ def fetch_page(page_idx):
if response['code'] == -401:
raise ExtractorError(
'Request is blocked by server (401), please add cookies, wait and try later.', expected=True)
if response['code'] == -352:
raise ExtractorError(
'Request is blocked by server (352), please add cookies, wait and try later.', expected=True)
return response['data']
def get_metadata(page_data):