RicterZ / nhentai

nhentai doujinshi downloader
http://nhentai.net
MIT License
838 stars 116 forks source link

TypeError: 'NoneType' object is not callable #133

Closed leluchbritansky closed 4 years ago

leluchbritansky commented 4 years ago

[11:31:34] [INFO] Fetching doujinshi information of id 222111 Traceback (most recent call last): File "/usr/local/bin/nhentai", line 10, in sys.exit(main()) File "/usr/local/lib/python2.7/dist-packages/nhentai/command.py", line 83, in main doujinshi_info = doujinshiparser(id) File "/usr/local/lib/python2.7/dist-packages/nhentai/parser.py", line 196, in doujinshi_parser field.find_all('a', attrs={'class': 'tag'})] TypeError: 'NoneType' object is not callable

OR

[11:50:06] [INFO] Fetching doujinshi information of id 222111 Traceback (most recent call last): File "/usr/local/bin/nhentai", line 11, in load_entry_point('nhentai==0.3.9', 'console_scripts', 'nhentai')() File "/usr/local/lib/python3.8/dist-packages/nhentai-0.3.9-py3.8.egg/nhentai/command.py", line 83, in main doujinshi_info = doujinshiparser(id) File "/usr/local/lib/python3.8/dist-packages/nhentai-0.3.9-py3.8.egg/nhentai/parser.py", line 195, in doujinshi_parser data = [sub_field.contents[0].strip() for sub_field in File "/usr/local/lib/python3.8/dist-packages/nhentai-0.3.9-py3.8.egg/nhentai/parser.py", line 195, in data = [sub_field.contents[0].strip() for sub_field in TypeError: 'NoneType' object is not callable

What I'm doing wrong?

ODtian commented 4 years ago

Same issue.

Traceback (most recent call last):
  File "/usr/local/bin/nhentai", line 11, in <module>
    load_entry_point('nhentai==0.3.9', 'console_scripts', 'nhentai')()
  File "/usr/local/lib/python3.8/site-packages/nhentai/command.py", line 83, in main
    doujinshi_info = doujinshi_parser(id_)
  File "/usr/local/lib/python3.8/site-packages/nhentai/parser.py", line 195, in doujinshi_parser
    data = [sub_field.contents[0].strip() for sub_field in
  File "/usr/local/lib/python3.8/site-packages/nhentai/parser.py", line 195, in <listcomp>
    data = [sub_field.contents[0].strip() for sub_field in
TypeError: 'NoneType' object is not callable
git-horst commented 4 years ago

Same issue. Hope it be fixed :)

symant233 commented 4 years ago

Thanks, #134 helps!

RicterZ commented 4 years ago

fixed on 0.4.0