RicterZ / nhentai

nhentai doujinshi downloader
http://nhentai.net
MIT License
771 stars 109 forks source link

我又来提BUG了☺️ #23

Closed t0m1sacat closed 6 years ago

t0m1sacat commented 6 years ago

Traceback (most recent call last): File "/usr/local/bin/nhentai", line 11, in load_entry_point('nhentai==0.2.11', 'console_scripts', 'nhentai')() File "/usr/local/lib/python2.7/site-packages/nhentai-0.2.11-py2.7.egg/nhentai/command.py", line 49, in main doujinshi.download() File "/usr/local/lib/python2.7/site-packages/nhentai-0.2.11-py2.7.egg/nhentai/doujinshi.py", line 56, in download logger.info('Start download doujinshi: %s' % self.name) File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xb8 in position 0: invalid start byte

可能是标题过长导致的。
--search="chinese bigbreasts" --download --thread=15 --page=1

RicterZ commented 6 years ago

好,我等下看看~ 这应该是编码的问题,比较蛋疼了

RicterZ commented 6 years ago

可以提供具体哪个本子出问题的吗

t0m1sacat commented 6 years ago

我再找下试试,依稀记得是个名字非常长的本子。

t0m1sacat commented 6 years ago

复现了,不是原来那个本子,另外一个本子也出现了这个问题,图片全部都下载下来了,但是在生成HTML文件的时候抛出了异常。

[22:52:59] [INFO] Start download doujinshi: AKE] Shokutai no Yoru Ingoku no Chigiri [Chinese]
[22:52:59] [WARNING] Path '237895-AKE_Shokutai_no_Yoru_Ingoku_no_Chigiri_Chinese' already exist.
...
[22:52:59] [INFO] HTML Viewer has been write to '237895-AKE_Shokutai_no_Yoru_Ingoku_no_Chigiri_Chinese/index.html'
Traceback (most recent call last):
  File "/usr/local/bin/nhentai", line 11, in <module>
    load_entry_point('nhentai==0.2.11', 'console_scripts', 'nhentai')()
  File "/usr/local/lib/python2.7/site-packages/nhentai-0.2.11-py2.7.egg/nhentai/command.py", line 49, in main
    doujinshi.download()
  File "/usr/local/lib/python2.7/site-packages/nhentai-0.2.11-py2.7.egg/nhentai/doujinshi.py", line 56, in download
    logger.info('Start download doujinshi: %s' % self.name)
  File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xb8 in position 0: invalid start byte
RicterZ commented 6 years ago

我这里是work的...看起来是输出本子名的时候炸了

RicterZ commented 6 years ago

237895是可以的,报错的是哪个?

t0m1sacat commented 6 years ago

如果237895可以的话那么报错的应该就是237889了,我输入的命令是

for i in {1..2}
do
  nhentai --search="chinese bigbreasts"  --download --thread=15 --page=$i
done

[10:26:07] [INFO] Fetching doujinshi information of id 237930 [10:26:10] [INFO] Fetching doujinshi information of id 237924 [10:26:13] [INFO] Fetching doujinshi information of id 237898 [10:26:16] [INFO] Fetching doujinshi information of id 237896 [10:26:20] [INFO] Fetching doujinshi information of id 237895 [10:26:23] [INFO] Fetching doujinshi information of id 237889 [10:26:24] [INFO] Fetching doujinshi information of id 237767 [10:26:24] [INFO] Fetching doujinshi information of id 237765 [10:26:25] [INFO] Fetching doujinshi information of id 237739 [10:26:26] [INFO] Fetching doujinshi information of id 237662 [10:26:27] [INFO] Fetching doujinshi information of id 237645 [10:26:28] [INFO] Fetching doujinshi information of id 237641 [10:26:29] [INFO] Fetching doujinshi information of id 237638 [10:26:31] [INFO] Fetching doujinshi information of id 237637 [10:26:33] [INFO] Fetching doujinshi information of id 237636 [10:26:35] [INFO] Fetching doujinshi information of id 237622 [10:26:37] [INFO] Fetching doujinshi information of id 237620 [10:26:38] [INFO] Fetching doujinshi information of id 237599 [10:26:38] [INFO] Fetching doujinshi information of id 237598 [10:26:39] [INFO] Fetching doujinshi information of id 237597 [10:26:40] [INFO] Fetching doujinshi information of id 237593 [10:26:42] [INFO] Fetching doujinshi information of id 237564 [10:26:44] [INFO] Fetching doujinshi information of id 237550 [10:26:45] [INFO] Fetching doujinshi information of id 237534 [10:26:49] [INFO] Fetching doujinshi information of id 237531 目前page1应该是OK的,节省时间的话第一页直接control+c跳过。上面是第二页面本子。

RicterZ commented 6 years ago

是237889,我看看

RicterZ commented 6 years ago

fixed

t0m1sacat commented 6 years ago

貌似导致了重复检测失效的BUG,以前下载过一个《237981-aruyukiko_Yuruyuru_kitsukitsu_Chinese》,这次又重复下载了,文件名为《237981-Haruyukiko_Yuruyuru_kitsukitsu_Chinese》

RicterZ commented 6 years ago

这个不是,我之前不知道咋的很智障的把文件名保存的时候少了前俩字符导致的。。然后我现在修了导致这里重复下载了

冯泽雁 notifications@github.com 于 2018年7月1日周日 22:22写道:

貌似导致了重复检测失效的BUG,以前下载过一个《237981-aruyukiko_Yuruyuru_kitsukitsu_Chinese》,这次又重复下载了,文件名为《237981-Haruyukiko_Yuruyuru_kitsukitsu_Chinese》

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/RicterZ/nhentai/issues/23#issuecomment-401610057, or mute the thread https://github.com/notifications/unsubscribe-auth/AFCbx0ckVIp2yMZAKc4UYIG-AkJOdKyIks5uCNsOgaJpZM4U6_Ik .

-- Ricter Z