elvis972602 / Kemono-scraper

A simple downloader to download media from kemono.party
MIT License
193 stars 12 forks source link

Error encountered in a post with no content #27

Closed 1223334444abc closed 1 year ago

1223334444abc commented 1 year ago

https://kemono.party/

The program reports an error and exits directly: "panic: runtime error: index out of range [-1]" The official said that this type of post is caused by a blacklist, and I think it can be directly ignored. (Does anyone know what a blacklist means?)

https://kemono.party/ And in this post, the downloader download three extra txt files.

"An existing connection was forcibly closed by the remote host." I have often encountered such mistakes recently, and they will be resolved in a few minutes. It seems that the website is restricting downloads?

elvis972602 commented 1 year ago

I'm sorry I completely forgot about this issue, regarding the second question, the api has a name field, which in some images named txt is indeed txt. If you rename it with the correct format (png, jpg, etc.) you should get the correct file. I think this is a special case and unpredictable. I also use other downloaders such as gallery-dl and have the same problem, so this should not be fixed.