Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-16-2016, 05:06 AM   #1
MicaOlaAdams
Member
MicaOlaAdams began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Oct 2016
Device: Kobo Aura One
Help: Strange behaviour with export template on OSX

Hi everybody,

I experience a very strange behaviour when exporting books to folders:

I have the following template set up for file export:
Code:
{author_sort}/{series}/{series_index:0>3s}_{languages}_{title}/{series_index:0>3s}_{languages}_{title}
Although all the books I selected for export have the same author and series, calibre exports them into folders with different author names and series names. Any ideas what might be wrong?

Many thanks

Mica
Attached Thumbnails
Click image for larger version

Name:	calibre-selection.png
Views:	132
Size:	86.7 KB
ID:	152398   Click image for larger version

Name:	exported-files.png
Views:	185
Size:	86.3 KB
ID:	152399  
MicaOlaAdams is offline   Reply With Quote
Old 10-16-2016, 05:51 AM   #2
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
In your file overview you have the same author in different spelling (WarnBrad, Warne Brad and Warner, Brad). You maybe export the wrong written author name before you correct the names. Delete first the older exports. When it happen again, you need again check your library for double entries (e.g. sorting by name/title or series will help to find theses entries).
Divingduck is offline   Reply With Quote
Advert
Old 10-16-2016, 06:06 AM   #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
Is that a result of the trimming calibre does for very long paths? Trimming the overall path, should help. Is there a reason to repeat "{series_index:0>3s}_{languages}_{title}" in the template? That looks like it will produce a directory per book and then the book will have the same name as the directory it is in. Dropping to just one will probably produce what you really want.
davidfor is offline   Reply With Quote
Old 10-16-2016, 06:21 AM   #4
MicaOlaAdams
Member
MicaOlaAdams began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Oct 2016
Device: Kobo Aura One
I checked the author and author_sort metadata in calibre. It's the same for all exported books.
But you are right, it's the name trimming. Any idea how I can shorten the title to only 5 letters?
MicaOlaAdams is offline   Reply With Quote
Old 10-16-2016, 04:02 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by MicaOlaAdams View Post
I checked the author and author_sort metadata in calibre. It's the same for all exported books.
But you are right, it's the name trimming. Any idea how I can shorten the title to only 5 letters?
How about putting the subtitles into a separate custom column, but don't put it in the template.

Aside : The latest version of Windows 10 (1607), supports long (32k chars) path names. To take advantage of this feature to avoid the truncation, I imagine calibre would need modification to detect it had been enabled.

BR
BetterRed is offline   Reply With Quote
Advert
Old 10-17-2016, 03:35 AM   #6
MicaOlaAdams
Member
MicaOlaAdams began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Oct 2016
Device: Kobo Aura One
Thanks for the idea with the subtitles!
I run calibre on a Mac, so I'm not sure about the character limit there.
MicaOlaAdams is offline   Reply With Quote
Old 10-17-2016, 03:50 AM   #7
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Quote:
Originally Posted by BetterRed View Post
Aside : The latest version of Windows 10 (1607), supports long (32k chars) path names. To take advantage of this feature to avoid the truncation, I imagine calibre would need modification to detect it had been enabled.
A good point. Guess, Kovid need then to update the help with a hint too, as this will provoke problems and a lot of user queries in other areas like different operating systems, cloud services etc.

Last edited by Divingduck; 10-17-2016 at 03:59 AM.
Divingduck is offline   Reply With Quote
Old 10-17-2016, 04:46 AM   #8
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by MicaOlaAdams View Post
Thanks for the idea with the subtitles!
I run calibre on a Mac, so I'm not sure about the character limit there.
I certainly thought the pathname truncation to 260ish characters only occurred on the Windows version of calibre. I take precautions to keep my author names and book titles short even though I don't use Save to Disk.

Hopefully another Mac user or Kovid will see the thread.

BR

Last edited by BetterRed; 10-17-2016 at 04:48 AM.
BetterRed is offline   Reply With Quote
Old 10-17-2016, 04:55 AM   #9
MicaOlaAdams
Member
MicaOlaAdams began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Oct 2016
Device: Kobo Aura One
Once again, many thanks to all those helping suggestions. Back to tweaking my calibre library
MicaOlaAdams is offline   Reply With Quote
Old 10-17-2016, 01:10 PM   #10
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,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by BetterRed View Post
Aside : The latest version of Windows 10 (1607), supports long (32k chars) path names. To take advantage of this feature to avoid the truncation, I imagine calibre would need modification to detect it had been enabled.

BR
It might be quite ugly. Not sure if Python supports the required Win32 manifest.

https://mspoweruser.com/ntfs-260-character-windows-10/
PeterT is offline   Reply With Quote
Old 10-17-2016, 01:29 PM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Windows has supported long pathnames forever. You just have to use special APIs for it. The problem is not windows support or lack thereof. The problem is that the vast ecosystem of windows tools/applications are often not long path capable, which means they sometimes cannot even see files with long pathnames. Before this latest win10 update, even windows eplorer could not handle long paths (I dont know if that has actually changed in this update thougj).
kovidgoyal is offline   Reply With Quote
Old 10-17-2016, 04:06 PM   #12
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Ahem - what about the OP's Save to Disk problem with 'long' path names that are being truncated - should that be happening - on OSX?

BR
BetterRed is offline   Reply With Quote
Old 10-17-2016, 11:04 PM   #13
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It depends on the filesystem. IIRC on windows all paths are limited. On other OSes, calibre tries to create a file with a name of 300+ characters in the directory specified for save to disk, if it succeeds the limit is set to 1000.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange behaviour Ghitulescu Editor 2 06-16-2015 04:57 AM
Conversion strange behaviour .... barrydrake Conversion 4 03-30-2015 04:13 PM
PRS-T2 Strange Wi-fi behaviour mediax Sony Reader 13 06-10-2013 01:31 PM
PRS-T1 Strange T1 behaviour .... carpetmojo Sony Reader 3 03-24-2012 03:55 AM
Strange Behaviour poshm PocketBook 9 12-31-2009 09:39 AM


All times are GMT -4. The time now is 06:32 PM.


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