12-19-2017, 09:51 AM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Dec 2017
Device: Kobo Glo HD
|
Mirror Calibre library path structure to device
Regards.
What would be the exact save to device template that would create identically named sub-directories and file-names on the device as their "original" sub-directories and file-names in Calibre Library? For example... a book from Calibre Library: Code:
<Calibre Library Path>\Albert Camus\The Stranger (28)\The Stranger - Albert Camus.epub Code:
<Device Library Path>\Albert Camus\The Stranger (28)\The Stranger - Albert Camus.epub |
12-19-2017, 10:06 AM | #2 |
Well trained by Cats
Posts: 29,768
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
most is obvious because they are visible fields:
Code:
({id}) |
12-19-2017, 10:21 AM | #3 |
Junior Member
Posts: 5
Karma: 10
Join Date: Dec 2017
Device: Kobo Glo HD
|
Thanks, I also got to this...
Code:
{author}/{title} ({id})/{title} - {author} |
12-19-2017, 10:44 AM | #4 |
Well trained by Cats
Posts: 29,768
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
12-19-2017, 04:24 PM | #5 | |
null operator (he/him)
Posts: 20,539
Karma: 26944418
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
And Kovid has been known to change the algorithm calibre uses to determine library folder and file names. BR |
|
12-20-2017, 02:38 AM | #6 |
Junior Member
Posts: 5
Karma: 10
Join Date: Dec 2017
Device: Kobo Glo HD
|
Thank you guys...
If I've understood your input correctly - folder and file names in Calibre library are (more or less) non-deterministic and there is no elegant way of having exactly the same folder/file structure on your device? What about some advanced use of formats_paths() and select() functions? I am not that "proficient" in Calibre's template language but I suspect some winded clauses of similar functions could potentially solve my problem. |
12-20-2017, 07:33 AM | #7 |
null operator (he/him)
Posts: 20,539
Karma: 26944418
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@FauDrei - why do you want to do this?
The names of sub-folders and files in a calibre library are arbitrary, they could have been created from row ids in the sqlite authors and books tables. If you really need the same structure on your devices you could try to find a file sync tool that runs on your computer and devices- have a look in Comparison of file synchronization software - Wikipedia. Since 2008 I've used Goodsync, if I was making the same decision today I would want to consider Resilio. BR |
12-20-2017, 09:56 AM | #8 |
Junior Member
Posts: 5
Karma: 10
Join Date: Dec 2017
Device: Kobo Glo HD
|
Hi BR, thanks for your suggestions. Having GLO HD e-reader structures in sync with my "main" Calibre PC was my goal.
For 20+ years I have been using Total Commander for synchronising folders and files (as well as for many other PC related tasks), but I wanted to spare myself a step or two at each e-book transfer from Calibre to my Glo HD. After all I've read/learned in past few days - I am not so sure this goal would be easy to maintain. Thanks anyway. |
12-20-2017, 10:03 AM | #9 | |
Grand Sorcerer
Posts: 6,227
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
12-20-2017, 11:49 AM | #10 | |
Well trained by Cats
Posts: 29,768
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
The first time you use 2 Libraries (anyone's) , those numbers become meaningless. There are also other functions that Calibre will change that assignment. Calibre companion will sync content and metadata (when using Wireless device connection) . Available for Android and IOS |
|
12-20-2017, 12:10 PM | #11 | |
Grand Sorcerer
Posts: 11,728
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Long way of saying that there are times when {id} or perhaps {uuid} is needed. |
|
12-20-2017, 01:03 PM | #12 |
Well trained by Cats
Posts: 29,768
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
[QUOTE=chaley;3628912
Long way of saying that there are times when {id} or perhaps {uuid} is needed.[/QUOTE] Now uuid make sense. It should not change, right? |
12-20-2017, 02:37 PM | #13 |
Grand Sorcerer
Posts: 11,728
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
12-20-2017, 03:17 PM | #14 | |
null operator (he/him)
Posts: 20,539
Karma: 26944418
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
The key issue is that calibre is not a file system centric application, it's a database centric application. The author and book sub-folders exist for efficiency reasons; they avoid having to use blobs for format files, they provide storage for readily displayable cover images, and a place to store database recovery data. As an experiment try this:
BR |
|
12-20-2017, 06:03 PM | #15 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
For example, calibre doesn't automatically update the metadata in the books. This is stored in a database and only when the book is sent outside calibre (plus some other actions) is the metadata updated. If you sync the file structure, the books on the device are unlikely to have the latest metadata. Another thing is the device. I link the think the calibre support for the Kobo devices is very good. The driver can create collections, set the series information, tweak some styles, generate the cover images and some other things when you send the book. Plus, it has an important cheat. The default behaviour of the Kobo device if a book is replaced is to remove it from the internal database and process it as a new book. This means you lose the collections and reading status. The driver fiddles with the database a bit to prevent this from happening. This isn't perfect, but I find it much more useful than the device treating the book as a new book. |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Library structure on PC and on Device | mfsav2 | Library Management | 7 | 12-17-2015 09:22 PM |
T68 - Calibre and folder structure on the device | Brandobras | Onyx Boox | 6 | 09-02-2014 03:20 AM |
Easiest way to mirror/sync library with Android device? | Mivo | Calibre | 6 | 10-02-2013 05:07 AM |
Change path to Calibre library | davidm_uk | Library Management | 3 | 02-07-2012 06:14 AM |
[old thread] filename and library structure /author and titel structure | tscamera | Library Management | 4 | 05-31-2011 05:44 PM |