Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 08-06-2022, 01:28 AM   #1
jmgant108
Member
jmgant108 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jul 2022
Device: Kobo Libra
custom save template for PDF

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'

Thanks
jmgant108 is offline   Reply With Quote
Old 08-06-2022, 08:09 AM   #2
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by jmgant108 View Post
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.
davidfor is offline   Reply With Quote
Advert
Old 08-06-2022, 11:11 AM   #3
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,301
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by jmgant108 View Post
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.
Have you tried the search function in KOReader? AFAIR, It uses the metadata.calibre file as the source for the search so you do need to be sending your PDFs using calibre.
DNSB is online now   Reply With Quote
Reply

Tags
koreader, libra, pdf, template


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
save as template ajean4 Library Management 12 04-15-2021 04:32 PM
Using built-in template functions in a custom template function ilovejedd Library Management 4 01-28-2018 12:20 PM
Save Template Help Maverynthia Library Management 10 05-19-2014 12:37 PM
Bogus error in save template from custom column rbroberts Library Management 4 04-18-2014 04:54 AM
Using Custom Metadata in Save Template EJvdH Calibre 1 07-02-2010 06:06 AM


All times are GMT -4. The time now is 11:43 PM.


MobileRead.com is a privately owned, operated and funded community.