Closed joshvictor1024 closed 3 weeks ago
Please don't close an issue on a persisting breaking bug without explanation. To my knowledge, this is still present in 2.0.1.
For those who are having the same problem, you can fix this by editing niconico/video/watch.py
. Some dict
type variables are incorrectly accessed with the dot syntax instead of the bracket syntax. Please correct me if I am missing something obvious.
Doing the following for every error point solves the issue for me.
# e.g. line 44
# return res_cls_data.data.response
return res_cls_data.data["response"]
Note that the keys are in camelCase
instead of snake_case
. You may want to print and check for yourself.
Thank you for letting us know about the issue, and I apologize for closing it without a reply.
Since version 2
, the internal structure of niconico.py
has changed significantly due to multiple factors, so console commands were not implemented in version 2.0.1
.
This has been implemented in version 2.0.2
, which was just released, and it now becomes possible to obtain video information, obtain available quality levels, and download mp4 files from the console.
Please refer to niconico -h
as some command usage has changed.
Internally, since version 2 we have been using pydantic for type annotations, which allows access using dot syntax instead of parentheses syntax. There should be no dict
type variables remaining.
I hope this resolves the problem. I will close this issue as soon as I can confirm that it has been resolved.
概要
niconico video <url> download
does not work for certain videos.現象・ログ
See below.
再現手順
期待動作
It should download the video normally.
niconico.pyのバージョン
1.2.3
and1.2.4
OSの種類/ディストリ/バージョン
Linux Debian 12 64bit
その他
None.