View Single Post
Old 02-08-2021, 03:32 AM   #2468
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 ownedbycats View Post
I'm not sure if this would also be present with the regular Kobo driver.

I ran into a glitch where between the length of multiple (long) author names and the .kepub extension, the filepath seemed to hit some sort of limit and truncated part of my custom save path ({#kobopath}/{author_sort}/{title} - {authors}) , resulting it ending up in K:\Fanion\ instead of \Fanfiction\.

Thankfully I was able to fix it with a {author_sort:sublist(0,1,&)} to show only the main author, but I found it strange that it truncated the path instead of the filename. Did I make a user error?
The path creation is done by calibre. The drivers supply a maximum path length and calibre works something out in that. It does tend to shorten the actual file name more than the rest of the path, but, I have seen this myself. I use a couple of different libraries, and put the library name first. Occasionally the library name gets shortened. From a quick look at the code, all parts of the path can be shortened, but the longer the part, the more will be taken from it. Hence the file name part will usually be changed the most.
davidfor is offline   Reply With Quote