Tag a book on import with the directories in the source path of the book
Until know I have organised my books in a directory structure in the vein of
.../ebooks/fiction/fantasy/flint/Torch of Freedom.epub
I now would like to move all my ebooks into a Calibre library. I know I can do this with the Add books from directories and sub-directories action. However I would like to write the names of the directories in the path of a book as tags to the book's metadata (overwriting all preset tags coming from the ebook publisher).
So for the example above I would like Torch of Freedom after import to be tagged with fiction, fantasy and flint.
How can I do this to all the books in this directory structure?
|