Sibusten / derpibooru-downloader

A downloader for imageboards running Philomena, such as Derpibooru.
MIT License
62 stars 6 forks source link

Artist File Name Option #6

Open JAK0723 opened 6 years ago

JAK0723 commented 6 years ago

Would it be possible to add the artist as an option when naming files? I would like to save images in the format of Downloads/{artist}/{id}.{ext}. Using post 8584 as an example, it would download the image to Downloads/kloudmutt/8584.jpg.

Sibusten commented 6 years ago

Yes, I could read the tags to get the artist name for the image. But there are some cases that are difficult.

What if there are multiple artist tags on a single image, such as 1710372? I could have it choose the first artist tag alphabetically, but that may not be a good solution. I could have it join the artist names together somehow (e.g. mrscurlystyles+rodrigues404), but folder names could get very long and even fail to save in the case of images like the community collab. Also, a new folder would be made for each combination of artists.

If there is no artist tag, what folder should it go into?

Images tagged anonymous artist could go into a folder named anonymous artist, which should be fine.

Even if there are issues with it, I could add it in anyway and put a disclaimer on it. But I would need to know how to deal with those cases first.

philip1060 commented 6 years ago

I think Using post 1710372 as an example i say take first artist tag as primary and the rest to the JSON file in my opinion i am new at this

Gromily4 commented 5 years ago

and can to do easier. if there is a request of the plan to pump out everything from this author and in request there is an artist:kloudmutt that to save Downloads/kloudmutt/8584.jpg and not have to think about the tags. simply prescribe this condition.

Noisypegasus commented 4 years ago

Why not use multiple tags for different output options? Like {Artist} For loading each contributing artist into each folder, {Artist1} For first artist mentioned without multiple files downloaded. I would like to see this feature. :D

Curtisdhi commented 3 years ago

Why not use Symbolic links? Put the image in the first artist folder, symlink to all the others.