Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-02-2022, 06:41 PM   #1
Gaqs
Connoisseur
Gaqs began at the beginning.
 
Posts: 50
Karma: 10
Join Date: Dec 2019
Device: KT4, PW3
filename templates and calibre wireless connection

Hello everyone, I've been trying to get specific filenames on KOReader by using the calibre template language on "Sending books to devices" under preferences. However I've been utterly unable to get the filenames I want on KOReader, the format is always "Book title - Author(some number)" independently of what I write as template.

So I opened an issue on the KOReader github page: https://github.com/koreader/koreader/issues/9284

They asked me to link the issue here when I ask about this. From what I understand, I need to know if the "template" data is sent over wireless connection, mentioning that they user "chaley" might know this information, saying that if it is then they can implement support to this feature on KOReader.

If there's a different way to get specific filenames to KOReader over wireless connection that I don't know of I'd love to know. Thanks in advance.
Gaqs is offline   Reply With Quote
Old 07-03-2022, 06:30 AM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,443
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
You must change the path template in the device driver. Changing the template in the driver will change the lpath sent to the device. KOReader uses that lpath as the path/name of the book.

Changing the template in Preferences / Sending ... sets the template used the first time a device connects (any device). From then on a device driver remembers that original template. Further changes in Preferences / Sending ... have no effect. To change the template in the device driver go to Preferences / Plugins, search for the device driver, in this case "SmartDevice", then "Customize plugin".

But to answer your question: no, the wireless device driver sends the result of evaluating the template, not the template itself. That isn't going to change.

The driver does send all the metadata for a book so the KOReader people could implement a template processor. The is what I did with CC back in the time when I owned it.
chaley is offline   Reply With Quote
Advert
Old 07-03-2022, 11:01 AM   #3
Gaqs
Connoisseur
Gaqs began at the beginning.
 
Posts: 50
Karma: 10
Join Date: Dec 2019
Device: KT4, PW3
Quote:
Originally Posted by chaley View Post
You must change the path template in the device driver. Changing the template in the driver will change the lpath sent to the device. KOReader uses that lpath as the path/name of the book.

Changing the template in Preferences / Sending ... sets the template used the first time a device connects (any device). From then on a device driver remembers that original template. Further changes in Preferences / Sending ... have no effect. To change the template in the device driver go to Preferences / Plugins, search for the device driver, in this case "SmartDevice", then "Customize plugin".

But to answer your question: no, the wireless device driver sends the result of evaluating the template, not the template itself. That isn't going to change.

The driver does send all the metadata for a book so the KOReader people could implement a template processor. The is what I did with CC back in the time when I owned it.
Wow, thank you so much for the explanation chaley, I changed the template under the SmartDevice plugin and it actually worked, now all the sent files have the filename structure I want. Can't thank you enough.
Gaqs is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre 5.0 Wireless Device Connection Crashing Calibre Companion datostar Calibre 3 10-05-2020 11:50 PM
PDF compressed when sent with Calibre Wireless Connection zorrodee666 KOReader 1 03-23-2019 10:50 PM
Wireless connection to calibre. sorg Kindle Developer's Corner 33 07-16-2015 11:49 AM
Calibre Companion and wireless connection taratears Calibre Companion 13 03-28-2015 05:32 PM
Nook Touch/Calibre wireless connection? tigersfan Devices 8 01-10-2012 02:51 PM


All times are GMT -4. The time now is 01:14 AM.


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