mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-06-19 01:04:42 +00:00
[ie/niconico] Fix error detection (#16991)
Closes #16844 Authored by: doe1080
This commit is contained in:
parent
cfee151fcd
commit
c4f94545c9
@ -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}))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user