KToolBox
KToolBox copied to clipboard
Error Missing Post Name or URL
The error that a download failed does not include the post url or name, thus not allowing the user to check the posts that failed to see why and perhaps download those one or two things by hand.
2025-02-02 14:00:34.047 | ERROR | ktoolbox.job.runner:processor:132 - Download failed - {'filename': '478182286223745024.mp4', 'exception': RemoteProtocolError('Server disconnected without sending a response.')}
Also, as far as I'm aware, one can not search an artist profile by file names.
Until this is added, you can simply open the "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\Lib\site-packages\ktoolbox\job\runner.py" file. Then search for:
else:
logger.error(
generate_msg(
"Download failed",
filename=job.alt_filename,
exception=exception
and replace it with:
else:
logger.error(
generate_msg(
"Download failed (edit)",
filename= str(job.alt_filename) + ", path: " + str(job.path) + ", server path: " + str(job.server_path),
exception=exception
If you want to do add more info to other errors, simply search through the project for the term "logger.error" or "logger.warn" for modifying warnings.
Also if nothing is coming up with the path output number (ARTISTNAME\496033290042482688\attachments), simply go to any post of the artist and in the url replace the number with this one
https://github.com/Ljzd-PRO/KToolBox/releases/tag/v0.18.0