Quote:
Originally Posted by capink
Another way to do this without having to hard code the custom column name, is to append this instead to the run() method:
|
IIRC this can produce a value that isn't the "real" path generated by Save to Disk. The Save to Disk function will truncate segments of the path so the path length fits within the 250 character limit calibre enforces on the path length. The resulting path is also "sanitized" to remove any characters that shouldn't be in paths, for example colons, control characters, question marks, asterisks, etc.
The only way I know to get the "real" path is to include the calibre ID somewhere in the path, walk the resulting book folders to generate the full path to a book, then use the ID to insert that path into the book's metadata.