Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 07-31-2020, 07:01 PM   #1
shoelesshunter
copyleft librarian
shoelesshunter began at the beginning.
 
shoelesshunter's Avatar
 
Posts: 58
Karma: 10
Join Date: Nov 2015
Device: KV
custom template suddenly stoppped working

I have the following template enabled on the Kobo:
Code:
Books/{:'current_library_name()'}/{#genre}/{title}/{authors}- {title}
This normally saves books under /kobo/Books/Calibre\ Library/<genre tag>/... and so on.

Suddenly, without any change to Calibre. books are being saved to the device under:

/kobo/Bs/CaliraryBm/<title>

I am using KOreader so file management is important to my workflow.
shoelesshunter is offline   Reply With Quote
Old 07-31-2020, 08:02 PM   #2
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,474
Karma: 78910112
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Maybe the path is too long (or at least exceeds a calibre maximum path length) and is being truncated
PeterT is offline   Reply With Quote
Advert
Old 07-31-2020, 10:35 PM   #3
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,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by shoelesshunter View Post
I have the following template enabled on the Kobo:
Code:
Books/{:'current_library_name()'}/{#genre}/{title}/{authors}- {title}
This normally saves books under /kobo/Books/Calibre\ Library/<genre tag>/... and so on.
Have you checked that this is the setting in the driver when the device is connected? Changing between the KoboTouch and KoboTouchExtended driver does not copy the settings.
Quote:
Suddenly, without any change to Calibre. books are being saved to the device under:

/kobo/Bs/CaliraryBm/<title>
That does look like a truncated file name due to excessive path length. Are all books going there, or just some with multiple authors. The path length is limited to (from memory) 186 characters on the device.
Quote:
I am using KOreader so file management is important to my workflow.
If you only use KOReader, then I suggest not using the Kobo specific drivers. Use either the Folder Device Interface or the User Defined USB driver to connect to the device. With these, you will see what is on the device without needing nickel to be started and import the books.
davidfor is offline   Reply With Quote
Old 08-06-2020, 04:28 PM   #4
shoelesshunter
copyleft librarian
shoelesshunter began at the beginning.
 
shoelesshunter's Avatar
 
Posts: 58
Karma: 10
Join Date: Nov 2015
Device: KV
It's not an issue with path length. I set my template to:

Books/{title}.

Some are stored under "Books" others under "Boks."

This happened when I used {formats}. Some were saved under PDF/ and others under PF/.
shoelesshunter is offline   Reply With Quote
Old 08-06-2020, 05:36 PM   #5
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: 46,008
Karma: 168961900
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by shoelesshunter View Post
It's not an issue with path length. I set my template to:

Books/{title}.

Some are stored under "Books" others under "Boks."

This happened when I used {formats}. Some were saved under PDF/ and others under PF/.
It still looks like a path length error. Add the length of the book file name to the directories. calibre basically uses the shortest length supported by any of the OS it runs on for all supported OS. That was the main driver for me modifying my save to device and save to disk templates to truncate the author list to the first entry.

Looking at your entry, adding the ebook title twice is likely not helping.

Code:
Elib/{author_sort:sublist(0,1,&)}/{title} - {authors:sublist(0,1,&)}

Last edited by DNSB; 08-06-2020 at 05:44 PM.
DNSB is offline   Reply With Quote
Advert
Old 08-06-2020, 11:28 PM   #6
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,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by shoelesshunter View Post
It's not an issue with path length. I set my template to:

Books/{title}.

Some are stored under "Books" others under "Boks."

This happened when I used {formats}. Some were saved under PDF/ and others under PF/.
If that is what is being done, it is almost definitely a path length issue. It is easy enough to check. Just look in the directory and see what the longest file name is.

And the maximum length used for Kobo devices is 185 characters. It is much shorter than the 250 that calibre has because of things the device does with the name.
davidfor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using built-in template functions in a custom template function ilovejedd Library Management 4 01-28-2018 12:20 PM
Suddenly stopped working Mr. mister Calibre 8 07-10-2011 09:47 PM
PRS-505 Library books suddenly not working? Lirael Sony Reader 2 05-19-2011 11:52 AM
ADE suddenly stopped working? suecsi Reading and Management 5 11-03-2010 01:53 PM
Kindle 1 suddenly not working! curiositykt Amazon Kindle 6 03-11-2010 09:15 AM


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


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