[ie/niconico] Fix error detection (#16991)
Closes #16844 Authored by: doe1080
This commit is contained in:
parent
cfee151fcd
commit
c4f94545c9
1 changed files with 1 additions and 1 deletions
|
|
@ -428,7 +428,7 @@ def _real_extract(self, url):
|
|||
'actionTrackId': f'AAAAAAAAAA_{round(time_seconds() * 1000)}',
|
||||
}, 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}))
|
||||
status = traverse_obj(api_resp, ('meta', 'status', {int}))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue