AlphaSlayer1964 / kemono-dl

A simple kemono.party downloader using python.
504 stars 82 forks source link

Download permanently stops upon error #32

Closed sybarix closed 2 years ago

sybarix commented 2 years ago

Version

Version: 2021.11.03

Service, User ID, Post ID

Your Command

@echo off
py kemono-dl.py --cookies "cookie.txt" --links https://kemono.party/SERVICE/user/USERID --favorite-users --output "D:\Kemono" --skip-filetypes PSD --force-indexing --force-external
pause

Description of bug

Downloader stops and cannot continue when encountering 404 error.

How To Reproduce

Just run the downloader, I've encountered this consistently.

Error messages and tracebacks

[info] Downloading Post: 甘雨 live 2d animation + sound
[info] service: [fanbox] user_id: [5850450] post_id: [2120492]
[info] Downloading attachments:
[Downloading]: [1]_210413_1.mp4
[info] Skipping download: file with matching hash already exists.
[info] Downloading post file:
[Downloading]: b2cff264-6747-46c1-8bd3-a57e34f6b522.jpe
[Error] downloading: https://kemono.party/data/files/fanbox/5850450/2120492/b2cff264-6747-46c1-8bd3-a57e34f6b522.jpe
404 Client Error: Not Found for url: https://data1.kemono.party/data/files/fanbox/5850450/2120492/b2cff264-6747-46c1-8bd3-a57e34f6b522.jpe
[info] Retrying download in 30 seconds. (1/3)
[Downloading]: b2cff264-6747-46c1-8bd3-a57e34f6b522.jpe
[Error] downloading: https://kemono.party/data/files/fanbox/5850450/2120492/b2cff264-6747-46c1-8bd3-a57e34f6b522.jpe
404 Client Error: Not Found for url: https://data1.kemono.party/data/files/fanbox/5850450/2120492/b2cff264-6747-46c1-8bd3-a57e34f6b522.jpe
Press any key to continue . . .

Additional comments

When encountering the above, pressing any key results in the client closing.

AlphaSlayer1964 commented 2 years ago

use -i or --ignore-errors even though the error is on kemon.partys end it is still an error so use that flag.

sybarix commented 2 years ago

Yup that works, thanks.

AlphaSlayer1964 commented 2 years ago

Probably all requests connection errors should be ignored by default but I'm kind of lazy if it's not broken.