Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Missing Post Name or URL #223

Open
LuanaNight opened this issue Feb 2, 2025 · 3 comments
Open

Error Missing Post Name or URL #223

LuanaNight opened this issue Feb 2, 2025 · 3 comments

Comments

@LuanaNight
Copy link

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
Copy link
Author

LuanaNight commented Feb 2, 2025

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

@LuanaNight
Copy link
Author

LuanaNight commented Feb 2, 2025

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
Copy link
Author

LuanaNight commented Feb 2, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant