AlphaSlayer1964 / kemono-dl

A simple kemono.party downloader using python.
503 stars 81 forks source link

getting an error when downloading certain posts #17

Closed CODE-LA-LI-LU-LE-LO closed 2 years ago

CODE-LA-LI-LU-LE-LO commented 2 years ago

Describe the bug The download seems to have finished normally, but the log shows that an error has occurred, and it is not saved in Archive.txt.

Error messages and tracebacks

>python kemono-dl.py --cookies "cookie.txt" --ignore-errors --force-indexing --links https://kemono.party/fanbox/user/93583/post/1406353 --archive archive.txt
Downloading post: 【R18】エストのおフェラ絵
service: [fanbox] user_id: [93583] post_id: [1406353]
Saving content to content.html
Downloading: Tz19beRNnqvzg6IBlYrobnq7.png
[==================================================] 1.9/1.9 MB, 4.0 Mbps
Downloading: AAsvBu2OdCqjr29BbNNm1U6y.png
[==================================================] 1.8/1.8 MB, 16.1 Mbps
Downloading: lduITbEsK6hr4wW9Ap4Pir1q.png
[==================================================] 1.9/1.9 MB, 20.4 Mbps
Downloading: J4QbkBqHv5hd3UEGHkE8GXuw.png
[==================================================] 1.9/1.9 MB, 22.2 Mbps
Downloading: UW08Xdch7Xc66KBiQfoM2IAl.png
[==================================================] 1.9/1.9 MB, 3.9 Mbps
Saving comments to comments.html
5 Error(s) encountered downloading post: 【R18】エストのおフェラ絵
----------------------------------------------------------------------------------------------------
Done!

>python kemono-dl.py --cookies "cookie.txt" --ignore-errors --force-indexing --links https://kemono.party/fanbox/user/93583/post/418632 --archive archive.txt
Downloading post: 夏コミ当選!&最近のラフとか
service: [fanbox] user_id: [93583] post_id: [418632]
Saving content to content.html
Downloading: ULja0FJurclFBu0FqF0pzpmJ.png
[==================================================] 0.1/0.1 MB, 1.3 Mbps
Downloading: 8b8cF929AhASiXSGSUQsKSNv.png
[==================================================] 0.1/0.1 MB, 6.9 Mbps
Downloading: R11CWu3QHhAR1nLa5Pj32kOC.png
[==================================================] 0.1/0.1 MB, 1.3 Mbps
Downloading: 6J7KkZAXBRENyFE8TAoxqRGf.png
[==================================================] 0.4/0.4 MB, 0.6 Mbps
Saving comments to comments.html
4 Error(s) encountered downloading post: 夏コミ当選!&最近のラフとか
----------------------------------------------------------------------------------------------------
Done!

>python kemono-dl.py --cookies "cookie.txt" --ignore-errors --force-indexing --links https://kemono.party/fanbox/user/93583/post/495807 --archive archive.txt
Downloading post: 脱稿!!!
service: [fanbox] user_id: [93583] post_id: [495807]
Saving content to content.html
Downloading: 2N0hEEhpZxKrUVrCfbPUy0Vr.jpeg
[==================================================] 0.5/0.5 MB, 14.7 Mbps
Downloading: LwIgP3H6uRQ7siSMZVn4bdgm.jpeg
[==================================================] 0.2/0.2 MB, 1.1 Mbps
Downloading: oPDkt1Hsth1WJglK96e7oATw.jpeg
[==================================================] 0.6/0.6 MB, 6.8 Mbps
Saving comments to comments.html
3 Error(s) encountered downloading post: 脱稿!!!
----------------------------------------------------------------------------------------------------
Done!

Poster and Post ID Service: Fanbox User ID: 93583 Post ID: 495807, 418632, 1406353, ...etc

After checking the folder, it seems to be downloading inline data. I didn't use '--force-inline', is it normal to download it?

AlphaSlayer1964 commented 2 years ago

Ok I figured out why you are getting the errors when I changed how the downloader returns an error I didn't update the inline extractor. Also inline images that are hosted on kemono are downloaded regardless or you wouldn't be able to see them when looking at content.html --fore-inline is for inline images that are hosted on other sites. I will upload a fixed release in a minute here.

AlphaSlayer1964 commented 2 years ago

new release is published.

CODE-LA-LI-LU-LE-LO commented 2 years ago

There is a problem with line 14 within the kemono-dl.py file. Single quotation marks are not closed.

File "kemono-dl.py", line 14
    version = '2021.10.26
CODE-LA-LI-LU-LE-LO commented 2 years ago

Also, --force-indexing does not apply to image download in the post in the example above. I want to make sure that's what it was intended for.

AlphaSlayer1964 commented 2 years ago

I fixed the version string being messed up. Well as of now indexing is only for attachments. Since those images are all from inline in the content I didn't think it was necessary to have the index apply to them. I will work on making the indexing work on inline content as well.