07-15-2023, 11:42 PM | #1 | |||
Junior Member
Posts: 9
Karma: 10
Join Date: Jul 2023
Device: Android 12 phone
|
calibre inconsistently removes center of saved ebook folders
When I save ebooks to disk, calibre will sometimes take a parent folder and remove the center. But it doesn't always do this - often times a folder will be both correctly saved and incorrectly saved, so instead of having
Quote:
Quote:
Quote:
|
|||
07-16-2023, 12:49 AM | #2 | |
Bibliophagist
Posts: 36,218
Karma: 145735388
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I would suspect that you are running into filename/filepath length limits. Perhaps you could check the full path. Under Windows for example, start from the root of the drive that you are exporting to disk on. An example might be:
C:\Users\<your name>\Documents\2023\My Calibre Files\Calibre_Save_to Disk\The Hunger Games by Suzanne Collins\2 - Catching Fire by Suzanne Collins\Catching Fire - Suzanne Collins.azw3 You might also want to post the template you are using for Save to Disk. A sample template might look like: Code:
{author_sort:sublist(0,1,&)}/{series:||} {series_index:|[|] - }{title} - {authors:sublist(0,1,&)} Quote:
Last edited by DNSB; 07-16-2023 at 12:46 PM. Reason: Changed quote to code for template |
|
Advert | |
|
07-16-2023, 06:17 AM | #3 | ||
Custom User Title
Posts: 8,753
Karma: 62032371
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
Quote:
|
||
07-16-2023, 07:00 AM | #4 |
Grand Sorcerer
Posts: 11,765
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
You can use the shorten() template function to construct file names where each segment has a maximum length and is shortened in a consistent way.
Using @DNSB's template as an example, the following ensures that the initial author_sort is never longer than 20 characters, the series is never longer than 15, the title is never longer than 25, and the first author is never longer than 20. The title and author split the value, placing an underscore between the parts. Thus the maximum length is 80 characters + the length of the series index + 8 (or so) for the fixed text in the template (brackets, slashes, hyphens, blanks). Code:
{author_sort:'shorten(sublist($, 0, 1, '&'), 20, '', 0)'}/{series:'shorten($, 15, '', 0)'||} {series_index:|[|] - }{title:'shorten($, 15, '_', 9)'} - {authors:'shorten(sublist($, 0, 1, '&'), 10, '_', 9)'}
Code:
Authorrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr, Test/A Foobar Mumble Fratz [16] - Test Title aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccccccccccccccccccccccccccccdddddddddddddddddddddddddddddddddddddddddddeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee - Authorrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr, Test Code:
Authorrrrrrrrrrrrrrr/A Foobar Mumble [16] - Test Title aaaa_eeeeeeeee - Authorrrrr_rrr, Test Last edited by chaley; 07-16-2023 at 07:13 AM. Reason: Left off the length of the fixed text |
07-16-2023, 07:09 AM | #5 |
Custom User Title
Posts: 8,753
Karma: 62032371
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I'm pretty sure a cat walked across the keyboard while inputting that metadata.
|
Advert | |
|
07-16-2023, 08:46 AM | #6 |
Bookish
Posts: 918
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
|
|
07-16-2023, 09:12 AM | #7 |
want to learn what I want
Posts: 1,039
Karma: 6422750
Join Date: Sep 2020
Device: Calibre E-book viewer
|
|
07-16-2023, 10:00 AM | #8 | |
the rook, bossing Never.
Posts: 11,407
Karma: 87454321
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
https://www.imdb.com/title/tt0516913/plotsummary/ |
|
07-16-2023, 10:10 AM | #9 |
Resident Curmudgeon
Posts: 74,424
Karma: 129358310
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
One question not asked yet is what does they metadata in Calibre look like for The Hunger Games books?
|
07-16-2023, 10:26 AM | #10 | |
Bookish
Posts: 918
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
|
Quote:
|
|
07-17-2023, 06:14 AM | #11 | |||
Junior Member
Posts: 9
Karma: 10
Join Date: Jul 2023
Device: Android 12 phone
|
SOLVED: too long of file length
Quote:
I put the export folder closer to the drive and cut some redundant data from the file path, which took it from Quote:
Quote:
|
|||
07-17-2023, 07:43 AM | #13 | ||
Custom User Title
Posts: 8,753
Karma: 62032371
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
Quote:
|
||
07-17-2023, 03:13 PM | #14 |
Resident Curmudgeon
Posts: 74,424
Karma: 129358310
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
[QUOTE=MsFlutter;4340605][quote]C:\aaa\Romance\The Fault In Our Stars by John Green\The Fault In Our Stars.epub [/qupte]
Should really be at best... C:\aaa\Romance\John Green\The Fault In Our Stars.epub as some titles can be rather long. |
Tags |
file names, saving books to disk, support, truncated, windows 10 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ebook creation and center element | nindotza | Calibre | 9 | 04-02-2020 05:53 AM |
Calibre inconsistently identifies device and sd card | MarjaE | Devices | 2 | 10-18-2019 09:34 PM |
Removing plugin in Calibre removes it from all instances of Calibre | oblox | Calibre | 9 | 09-09-2016 05:39 AM |
Calibre with "empty" folders (no ebook file) | Orionpkmyz | Calibre | 1 | 11-13-2015 10:20 AM |
NYT Removes ebook bestseller lists from print editions | fjtorres | News | 12 | 06-05-2013 02:52 PM |