[ie/niconico] Fix error detection (#16991)

Closes #16844
Authored by: doe1080
This commit is contained in:
doe1080 2026-06-18 07:53:29 +09:00 committed by GitHub
parent cfee151fcd
commit c4f94545c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -428,7 +428,7 @@ class NiconicoIE(NiconicoBaseIE):
'actionTrackId': f'AAAAAAAAAA_{round(time_seconds() * 1000)}', 'actionTrackId': f'AAAAAAAAAA_{round(time_seconds() * 1000)}',
}, expected_status=[400, 404]) }, expected_status=[400, 404])
api_data = api_resp['data'] api_data = traverse_obj(api_resp, ('data', {dict}))
scheduled_time = traverse_obj(api_data, ('publishScheduledAt', {str})) scheduled_time = traverse_obj(api_data, ('publishScheduledAt', {str}))
status = traverse_obj(api_resp, ('meta', 'status', {int})) status = traverse_obj(api_resp, ('meta', 'status', {int}))