View Single Post
Old 08-17-2013, 03:06 AM   #2
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
There is no direct support for this in calibre, as far as I know.

However one way to achieve this could be by using two different scripts to add books, with different settings. These scripts could be used to add books from one specific folder to one specific library. Or to the same library, but with different tags, making the books appear in different virtual libraries (easier and recommended).

The scripts could either run automatically at specific times, assuming that calibre is not already running, or every time you start calibre. And of course, the scripts could be combined to one script that add books from two different folders, using two different settings. Note that the scripts must not be run while calibre is running.

The easiest would most likely be to add this extra functionality to the script that start calibre. To add the books from the two folders, to different calibre libraries, you would just have to start or restart calibre. This also ensures that the scripts to add books is never run while calibre is running.

To do this you would have to be reasonable proficient in scripting your operating system and also research the command line tools of calibre, especially calibredb:

http://manual.calibre-ebook.com/cli/calibredb.html

This command can be used to add specific books to a specific calibre library or with a specific tag set. Using a script it would be possible to automatically add several books from different folders to different libraries or with different tags set.

I could write that script for Linux, if I had to, but I would have more difficulties to do it for Windows. Most likely I would install the same scripting environment in Windows and then I could use the script from Linux, with minor changes. But this all has some uncanny similarities to work...

Perhaps someone else here knows an easier way?

Last edited by Adoby; 08-17-2013 at 05:04 AM.
Adoby is offline   Reply With Quote