05-20-2016, 01:01 PM | #16 | |
Connoisseur
Posts: 93
Karma: 886
Join Date: Apr 2005
Device: Moon+ Reader Pro on Samsung Galaxy S7 Edge International version
|
Quote:
Edit: I added a fourth level to the template: {first_author:%1.1s}/{first_author}/{title:%1.1s}/{title} - {authors} Then I ran into the path length limit for some books with long titles. I manually saved those to the CC book folder and the next wireless sync they got added to the CC data base. Last edited by gsparks2; 05-22-2016 at 11:31 AM. |
|
05-25-2016, 04:16 AM | #17 | |
Grand Sorcerer
Posts: 11,779
Karma: 7029971
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
What the problem with path lengths? Are you saying that CC or calibre choked on a path? CC is supposed to deal with that by shortening the path components, and calibre is very careful to create proper paths. Perhaps it did that and you didn't like the result? |
|
Advert | |
|
05-25-2016, 08:58 AM | #18 | |
Connoisseur
Posts: 93
Karma: 886
Join Date: Apr 2005
Device: Moon+ Reader Pro on Samsung Galaxy S7 Edge International version
|
Quote:
I {believe} the issue with the path length limit is the ~256 character limit for the complete path stored in the FAT32 table. I think that Android may have not liked the path for some reason. Example: /storage/6144-AD4B/CC Books/{first letter of author's first name}/{Author's full name}/{first letter of the first word in the title}/{title} - {author}. 6144-AD4B is the label for the SD card. For books with long titles and long author names I got the error message "unable to save {title} - {author}" or something of that sort. This appeared in a gray box and went away by itself. There were only 145 books out of the 24k that this message popped up. All of the above was while downloading from local cloud Calibre library on the SD card. I tried connecting as a wireless device and downloading the same books from Calibre on the PC. The first book caused CC to disconnect from Calibre without error message. Subsequently, from Calibre, I saved them as epub in a single directory to root of CC Books with the template ({series}) - {title} by {author}. I then connected CC as a wireless device. CC found the books and downloaded the metadata from Calibre. EDIT: I tried to recreate the errors but the books download just fine from local cloud calibre library. Some of the 145 had duplicates in the Calibre Library. Some of the 145 had author first name starting with V. CC created folders with both upper case v and lowercase v. Multiple folders V were created V(1), V(2). these disappeared along with their book files. This may need to go into the mystery file unless it pops up again. Last edited by gsparks2; 05-25-2016 at 10:06 AM. |
|
05-25-2016, 01:31 PM | #19 |
Grand Sorcerer
Posts: 11,779
Karma: 7029971
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
@gsparks2: thank you. If I understand you correctly, the download time went from minutes per book to a second or less. Excellent.
Your comments triggered some questions, so I (finally) did enough research to better understand path lengths. CC gets it wrong. As far as I can tell, no file system used in Android has a draconian limit on path length. However, other operating systems such as Windows that might read an SD card do. For example, Windows has a limit of 255 characters. CC gets this right. On the other hand, several file systems used in Android such as ext3 have a limit on a single component of a file path. The ext3 limit is 255 bytes, which if using unicode is 127 characters. The FAT32 limit is 255 characters. CC doesn't get the second limit right. I will fix this. |
05-25-2016, 01:49 PM | #20 | |
Connoisseur
Posts: 93
Karma: 886
Join Date: Apr 2005
Device: Moon+ Reader Pro on Samsung Galaxy S7 Edge International version
|
Quote:
|
|
Advert | |
|
06-17-2016, 06:07 PM | #21 |
Enthusiast
Posts: 29
Karma: 10
Join Date: May 2014
Device: Windows 10 Tablet / Calibre or Nexus 9 / Moon+
|
ETA: Oh, wait, I just read the FAQ more carefully. I see I'll need to re-download.
Am I correct in believing that if I use the "Replace" option described in the FAQ, the thousands of files in the base directory will actually be moved to their new locations (as opposed to deleted and re-downloaded)? --- If I change the template in CC as described, what will happen to the thousands of books currently in the library? I'm guessing that CC won't reorganize them automatically, right? If it won't, can I force a reorganization by having CC move the files to a new directory? Or, if I pop the SD card into my computer and rearrange manually, will CC find them in the new locations? Or am I just going to have to bite the bullet, wipe the directory, and redownload the entire collection? Last edited by Steven Karp; 06-17-2016 at 06:22 PM. Reason: Careless reading. Tsk, tsk. |
06-18-2016, 06:08 AM | #22 | ||
Grand Sorcerer
Posts: 11,779
Karma: 7029971
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
Two thoughts:
EDIT: if you are going to do a massive re-download be sure to use the CC V5.1.3.3 released today. It has fixes for some strange Android behavior when file names differ only in letter case. Last edited by chaley; 06-18-2016 at 06:11 AM. |
||
06-18-2016, 06:37 PM | #23 | |
Enthusiast
Posts: 29
Karma: 10
Join Date: May 2014
Device: Windows 10 Tablet / Calibre or Nexus 9 / Moon+
|
Quote:
Unfortunately, I'm on an Amazon Fire, where CC doesn't seem to have updated past 5.1.2.4 yet. (Update: the tablet notified me about the update as I was typing this message. *sigh*) It went smoothly enough (albeit slowly, for obvious reasons). Ran into what was probably the issue you're referring to with L. Sprague de Camp, when CC created a bunch of folders ("d (1)", "d (2)", etc.) I edited Calibre to sort as DeCamp and that solved the problem well enough for my purposes. |
|
07-29-2016, 11:06 AM | #24 | |
Wizard
Posts: 2,895
Karma: 6995721
Join Date: Dec 2008
Location: Idaho, on the side of a mountain
Device: Kindle Oasis, Fire 3d Gen and 5th Gen and Samsung Tab S
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Conversion from HTML taking forever | openletter | Conversion | 4 | 04-04-2014 01:16 AM |
PRC conversion taking Forever | HJanos | Conversion | 1 | 02-01-2014 05:14 PM |
New ST taking forever first charge? | lorraineg57 | Barnes & Noble NOOK | 3 | 12-23-2012 01:27 PM |
Calbre Mobi to Epub taking forever | Alanw888 | Conversion | 9 | 07-30-2012 02:54 AM |
PDF 2 epub conversion taking forever.. | jtndesigner | Calibre | 7 | 01-08-2011 04:28 PM |