Ljzd-PRO / KToolBox

Downloader for Kemono.su / .party with High Customizability | 高度可自定义性的 Kemono 下载器
https://ktoolbox.readthedocs.io
BSD 3-Clause "New" or "Revised" License
253 stars 10 forks source link

A sub-command to add post ID to left of folder's name would be helpful. #131

Closed TheThirdComputer closed 5 months ago

TheThirdComputer commented 5 months ago

A sub-command to add the post ID and other important variables to the left of the created folder's name would be really useful.

This would help with organizing folders by date with only a single click, and also not have to search trough several folders to find a specific post simply using an average search by ID or other variables. AND help avoid the issue of having several posts with the same name, thus the program creating a single folder putting content of different posts in the same folder, becoming confusing quickly.

Example:

https://kemono.su/patreon/user/26365500/post/91445419 Downloading this post from the artist named 'Heath Grace' with the command 'ktoolbox download-post' gives us a folder called = "Alex" A more useful name could be = "91445419 Patreon Heath Grace = Alex"

Sorry if this is already possible, but if so, could someone explain me please?

Ljzd-PRO commented 5 months ago

https://ktoolbox.readthedocs.io/latest/configuration/guide/

use KTOOLBOX_JOB__POST_DIRNAME_FORMAT

KTOOLBOX_JOB__POST_DIRNAME_FORMAT=[{published}]{title}

available keys: https://ktoolbox.readthedocs.io/latest/configuration/reference/#ktoolbox.configuration.JobConfiguration

TheThirdComputer commented 5 months ago

Ah, thank you, I forgot about checking the configuration tutorials. After some time researching, I managed to make them work.

TheThirdComputer commented 5 months ago

As a last reminder just in case anybody else also rather new, you have to create the file named 'prod.env' inside of the folder/directory where you are going to USE/WRITE YOUR COMMANDS, NOT inside of the directory of your KToolBox Phyton files.