Quote:
Originally Posted by jmgant108
I use KOReader for PDFs on my kobo libra. Searching dozens of authors (especially when I can't remember their names) is tedious in the KOReader file manager.
Is there a way I can prepend the book format to the save path when calibre sends it? This way I'll have two paths: '/kepub/author/title' and '/pdf/author/title' and I can then easily locate my PDFs with KOReader.
Or even better, save all kepub in a directory called 'nickle' and pdfs in 'koreader'
|
It is a template, so you can use any function or part of the metadata to construct the path. But, the best I can think of for this:
Code:
program:
type_dir = in_list(approximate_formats(), ',', 'PDF','pdfs','nickel');
strcat(type_dir, '/', $author_sort, '/', $title, ' - ', $authors)
The problem is that "approximate_formats" returns a list of formats for the book. My template basically assumes the PDFs are the only format for that book. Or that it is higher in the formats to send to the device than any other format the book has.
There is probably a better way. Maybe @chaley will pop in with a suggestion.