KToolBox icon indicating copy to clipboard operation
KToolBox copied to clipboard

Error Missing Post Name or URL

Open LuanaNight opened this issue 10 months ago • 3 comments

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.')}

LuanaNight avatar Feb 02 '25 13:02 LuanaNight

Also, as far as I'm aware, one can not search an artist profile by file names.

LuanaNight avatar Feb 02 '25 13:02 LuanaNight

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.

LuanaNight avatar Feb 02 '25 14:02 LuanaNight

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

LuanaNight avatar Feb 02 '25 14:02 LuanaNight

https://github.com/Ljzd-PRO/KToolBox/releases/tag/v0.18.0

Ljzd-PRO avatar Aug 02 '25 07:08 Ljzd-PRO