nhentai
nhentai copied to clipboard
Possible issue with requests
Hi, I'm getting a key error with the init_response dictionary. Here's the error I got.
[00:05:13] banner: nHentai ver 0.5.2: あなたも変態。 いいね?
[00:05:13] main: Using mirror: https://nhentai.net
[00:05:13] main: Using viewer template "default"
[00:05:13] check_cookie: Cannot get your username, please check your cookie or use `nhentai --cookie` to set your cookie
[00:05:13] main: Using default language: japanese
Traceback (most recent call last):
File "/usr/local/bin/nhentai", line 33, in <module>
sys.exit(load_entry_point('nhentai==0.5.2', 'console_scripts', 'nhentai')())
File "/usr/local/lib/python3.10/dist-packages/nhentai-0.5.2-py3.10.egg/nhentai/command.py", line 58, in main
doujinshis = _search_parser(options.keyword, sorting=options.sorting, page=page_list,
File "/usr/local/lib/python3.10/dist-packages/nhentai-0.5.2-py3.10.egg/nhentai/parser.py", line 283, in search_parser
page = range(1, init_response['num_pages']+1)
KeyError: 'num_pages'