Stonepaw / comicrack-library-organizer

ComicRack Library Organizer - highly configurable file management solution for ComicRack
57 stars 4 forks source link

[Enhanced] New rename and move options. #16

Open killo3967 opened 2 months ago

killo3967 commented 2 months ago

Could it be possible that you modify your script to add new options?

I think it's interesting that in addition to moving the comics, other types of files can be moved. For example, some programs like kavita, jellyfin, etc., can add files to the directory.

In my case I use Jellyfin and each comic has a file with the same name with a jpg/png/webp extension and it would be great if I could rename them as well.

It also adds a file called folder.jpg which is the image of the folder and I would like to be able to move it.

I use the cvinfo script that creates a file "CVInfo.txt" that contains the information from the ComicVine scrap website and I would like it to be moved to the destination.

And as an added bonus, I think it would be very interesting if when the files are moved, if the source directory is empty, I could delete it. This is perhaps best left to the user's option using a checkbox.

Stonepaw commented 1 month ago

Library Organizer can only move files that ComicRack knows about. It would be a fairly large feature to add additional files and I do not see the need at this time but if there is a large community need for this I can look into it.

Although questions there.

For your second point LO already has the option to remove empty folders. What is likely happening is that because you have extra jpg/.txt files LO sees that the folder is not empty and thus cannot delete it.

image

killo3967 commented 1 month ago

It's a good question and I can only answer for myself. My need arises to organise comics in folders by theme. There are two possibilities.

1.- From the "downloaded" folder where I have cleaned them up and renamed them, I have scanned them and created the file "Cvinfo.txt" to the destination folder in the library (e.g. science-fiction). At this point folder.jpg doesn't exist yet because Jellyfin still exists.

2.- From a folder in the library directory to another folder in the library because I decide that it is of one subject instead of another. For example from Science Fiction to Fantasy. In this source folder there are both Cvinfo.txt and folder.jpg files.

As in both cases I want to move and make the source directory disappear, the solution would be to put a checbox under the "Remove empty folders" associated to the ckeck of this one that says "Move the rest of files before empty folder".

Or if you don't want to get too complicated, assume you move the files by checking "Remove empty folders", for me it's the same thing.