Quote:
Originally Posted by beckywc
Wow sounds complicated, but will give it a shot. Thanks
|
That's why I didn't do it that way in the script, but used tags/authors/series instead. Much easier.
If you're not comfortable rewriting the script for your specific needs, why not just copy the custom column values into your tags using Calibre's bulk metadata edit tool?
To do this: Select books to edit in calibre, right click, Edit metadata in bulk, "Search and Replace" tab. Set Search mode to "Regular Expression", Search field to your column name, search for to "(.+)" (without the quotes), replace with to "-\1" (again, without the quotes), destination field to "tags", mode to "append to field", ensure "use comma" is ticked then apply
Back up your library before doing this, but it should create a new tag for each book and give that tag a dash prefix so that the script will detect it and turn it into a collection. If you don't want the collection names to have a prefix then change prefixTag in the script to an empty string (the script uses the dash to identify tags to turn into collections and then removes the dash before adding the prefixTag to the name).