|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
New York Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,384
Karma: 16540415
Join Date: Aug 2007
Device: PalmTX, Pocket eDGe, Alcatel Fierce 4, RCA Viking Pro 10, Nexus 7
|
Getting Calibre to transfer books to device creating subdirectories by author
I'm probably missing the obvious again, but...
When I first began to use Calibre to manage my eBook library and I added books, Calibre created directories under it's main Calibre Library folder as needed, with the author's name as directory name, and further books by that author went into that sub-directory. When I used Calibre to transfer books to my Android tablet, it retained that structure. On my Android tablet, eBooks are stored in the /eBooks directory on an external 32GB microSD card. Calibre knows to place books transferred to device there, and FBReader knows that's the directory eBooks live in. Recently I discovered that new books I add to Calibre aren't being placed in existing sub-directories, and new directories aren't being created. All books are winding up in the top level eBooks directory. I have made no changes I'm aware of in Calibre's config that might affect this, so I'm confused as to why it's occurring. I looked at the Calibre docs, and unless I am misunderstanding them, the default action Calibre takes when transferring books to device should replicate the directory structure Calibre maintains on the desktop. I'm trying to debug a recent problem with FBReader Premium on the tablet. When it scans for new books, it never successfully completes - a background library scan process continues endlessly, and chews up enough CPU to make reading the current book problematic. FBReader's author has been sent a copy of the books.db file where FBReader stores its list, and I await commentary. This is not the first time I've had this sort of problem. I don't know if I have the largest library on device that FBReader is called upon to deal with, but I suspect I'm well up on the shortlist. ![]() Meanwhile, when thousands of eBooks are winding up in the top level directory when they all should be in sub-directories, my spider sense tingles and I wonder if it's a contributing factor. What should the format string Calibre uses to determine how to transfer books to device be to make it create directories and store books in them? I want to make sure that's what it's using, and eliminate one variable. Thanks in advance, ______ Dennis |
![]() |
![]() |
![]() |
#2 |
You kids get off my lawn!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,220
Karma: 73492664
Join Date: Aug 2007
Location: Columbus, Ohio
Device: Oasis 2 and Libra H2O and half a dozen older models I can't let go of
|
I'm not at home, so I might not be getting the details right - I get the results you're talking about when I use the "export to a single folder" option. (I'm still using a 2.x version of Calibre).
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
New York Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,384
Karma: 16540415
Join Date: Aug 2007
Device: PalmTX, Pocket eDGe, Alcatel Fierce 4, RCA Viking Pro 10, Nexus 7
|
Quote:
I'm running the current 64 bit version under Win10 Pro. I'll have to check that option. It's possible I changed the default as part of other fiddles, and didn't realize the implications. Meanwhile, I popped the card out of the device, put it in an adapter, and went in and removed the thousands of books that had wound up on top level, then replaced the card and booted the device. FBReader Premium is currently rebuilding it's metadata from only the volumes stored in sub-directories. If it successfully completes, I'll have narrowed down the problem. Once I have Calibre configured to do what I expect, I can re-add the volumes I deleted from the card. It will take a while, but that's okay as long as it works. ![]() ______ Dennis |
|
![]() |
![]() |
![]() |
#4 | ||
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,717
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
It would appear that you've lost some of the template you had - make sure you check the device configuration template, it overrides the one in Send To Device preferences. Quote:
To cope with the vagaries of the different operating and file systems that calibre supports, the author and book directories, and the format file names within the library are ascii-ized and they may be truncated. These names are computed algorithmically - and the algorithm is subject to change. For Latin alphabets, diacritics such as acute and umlauts etc are discarded, other 'alphabets' are 'latin-ized', so the author iʁɛn nemiʁɔfski directory name will be iRen nemiRofski and the book 辛識平:習近平向世界展示“中國名片” directory name will be Pi Lu Ma Jia , Gan Hei Gou Dang _We. It's probably 'safer' to test a template with Save to Disk. BR |
||
![]() |
![]() |
![]() |
#5 | ||||
New York Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,384
Karma: 16540415
Join Date: Aug 2007
Device: PalmTX, Pocket eDGe, Alcatel Fierce 4, RCA Viking Pro 10, Nexus 7
|
Quote:
Quote:
I've dealt with a number of different architectures and OSes over the years, and am aware of the issues. Calibre is welcome to algorithmically change things. All I care about is that the library structure on device replicates the one in the main Calibre Library on the desktop, and that sub-directories are created based on author names and books by authors go in those sub-directories. Quote:
Quote:
______ Dennis Last edited by DMcCunney; 07-06-2017 at 09:20 PM. |
||||
![]() |
![]() |
Advert | |
|
![]() |
#6 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,717
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I can't help with FB Reader specific issues - don't use it, never seen it.
I had the impression that you didn't like having everything ending up \ebooks rather than in author (or author_sort) directories, that's what I was trying to help with. BR |
![]() |
![]() |
![]() |
#7 | ||
New York Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,384
Karma: 16540415
Join Date: Aug 2007
Device: PalmTX, Pocket eDGe, Alcatel Fierce 4, RCA Viking Pro 10, Nexus 7
|
Quote:
The Android version is a port to Java, and has a similar feature set. (It doesn't handle Plucker files, alas.) And it can handle PDF, DjVu, and CBR/CBZ files via plugins. (The Premium version builds in PDF support.) It's highly configurable and works well, but I've seen it have problems with large libraries. (The author has posted several versions intended to fix those issues, but they still bite me.) Quote:
I think FizzyWater is on to something, and it's what I'll be looking at next. ______ Dennis |
||
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
@DMcCunney: The question is how are you putting the books on the device? If you are using send-to-device, then the template BR pointed to controls it. But, that is the default template. When you configure the device driver in calibre, it copies the template from the default. Any future changes have to be done in the driver configuration. You need to check this is what you expect it to be. The simplest way to do this is when the device is connected. Right-click on the device button in the toolbar and select the configure option. You will then be able to see what template is currently being used.
If you are using some other mechanism to get the books to the device, then you need to find and fix that configuration. The ways I can think of are save-to-disk and Calibre Companion. There is template in the save-to-disk configuration that can be changed. I don't use Calibre Companion and don't know if this is configurable. |
![]() |
![]() |
![]() |
#9 | |
New York Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,384
Karma: 16540415
Join Date: Aug 2007
Device: PalmTX, Pocket eDGe, Alcatel Fierce 4, RCA Viking Pro 10, Nexus 7
|
Quote:
I vaguely recall diddling the device config which is where the error crept in, but I don't recall why I made the change. In any case, things are working as desired. And once I removed a large number of books that had would up in the top level directory instead of in the proper sub-directories, FBReader stopped choking trying to scan for new books and update it's metadata. I haven't heard back from FBReader's author on my bug report and submission of the books.db file it creates. I need to send him an update on what I did. It may point him in the right direction. ______ Dennis |
|
![]() |
![]() |
![]() |
#10 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
The template in Preferences is a DEFAULT for NEW devices. Once a device has been connected, it retains the, then current default unless it (the device driver version) is later modified by the user.
![]() |
![]() |
![]() |
![]() |
#11 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,717
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre 2.61 running on Ubuntu 16.04 doesn't transfer books to device Aquaris 10 M 10 | RayArdia | Devices | 2 | 07-09-2016 06:16 PM |
Creating a virtual library according how many books by author | mariaclaudia | Calibre | 5 | 06-04-2015 12:03 AM |
will books transfer from device to calibre? | rhythmisasadist | Library Management | 1 | 09-15-2011 05:38 PM |
Calibre/Kindle newbie needs help with pdf coversion and creating device collections. | riprap | Conversion | 5 | 08-19-2011 02:19 AM |
Classic Books transfer fine to device....but not to SD card | krighton | Barnes & Noble NOOK | 8 | 07-02-2010 08:18 AM |