Small Collections
Is there a good way to avoid small collections? (1 or 2 items)
So I have the system setup and everything seems to be working as designed. I used Calibre to export books to the kindle. First tier folders are author and second tier folders series. Then I run LS to create collections via the folder hierarchy.
The issue I have is that several authors I only have 1 book by them. Maybe half the authors I have 2 or less books. With both Calibre and LS running as designed, I end up with a lot of collections created with 1 book in them. I know I could manually open up each directory and cut/paste books from authors with only one file to /documents/misc thus ending up with a catch all collection.
I wonder how best to avoid that time intensive method. I have tried reading the Calibre menu option about exporting to see if I could put a qualifier to export to a different folder if it's going to make a small folder, but I can't see how the language would work. I can barely phrase it in English. It seems like it'd be much easier to handle it on the collection generating side. When it scans the architecture, if it sees only one file within a given folder, then it should move that item designator up one level and into a misc folder. I have no idea how to edit the python script for this.
The only hope that I could even start on my own would be to try to write a batch code that would scan the directory and actually rebuild the /documents folder to that kind of specification. If I can write the batch code, I think I could just run it after each Calibre export. It's not elegant, but I'm not sure if there's a better way.
|