|
|
Thread Tools | Search this Thread |
10-14-2011, 10:26 AM | #1 |
Member
Posts: 21
Karma: 50
Join Date: Jun 2010
Location: Poland
Device: Sony PRS-600
|
An option NOT to use authors and titles in directory and file names?
It would be great, if calibre could be configured NOT to use author and title for directory and filenames, but use something persistend (like numerical id) instead.
Reasoning? Consequences of author/title spelling corrections when calibre library is version-controlled and/or synchronized – and I mean both explicit version control (I keep my library under mercurial) and automatic tools like Dropbox or other cloud drives. Unfortunately those tools are usually bad at truly tracking the file over renames, even if they detect the fact, and - with the current calibre directory layout - fixing typo in the author name usually results in doubling space occupied by the repository, re-syncing whole (unchanged) file over the network, loosing the file changes history or similar problems. I agree that the current convention is nice whenever one locates the book using file manager (insted of calibre), so I'd not recomment giving it up, but maybe calibre could make it possible to configure the way filenames are generated via some preference setting? |
10-14-2011, 11:03 AM | #2 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
|
Advert | |
|
10-14-2011, 04:49 PM | #3 | |
Member
Posts: 21
Karma: 50
Join Date: Jun 2010
Location: Poland
Device: Sony PRS-600
|
Quote:
|
|
10-14-2011, 08:11 PM | #4 |
creator of calibre
Posts: 43,851
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The standaradisation of the directory structure allows various things to work well, for example the restore library tool. As such I am not going o change it. But you are welcome to make the change in running calibre fro source. It should be a very simply patch against database2.py to change the directory scheme.
|
10-14-2011, 09:40 PM | #5 | |
Wizard
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
Quote:
I actually do find it useful on occasion if I find a book with missing or no formats in my current library. Easy to locate in a backup copy. I occasionally scroll down the library file folder listing to check for author misspellings as well. Sometimes I spot things there that I miss in the tag browser. (I always change them using calibre not by changing the directory filename). I can also imagine that the developer(s) would find it useful on occasion to see this info on an os level. Longer file folder names can be a bit of a pain for those with an already complex (very long path before reaching calibre folder level) but it might be better to simplfy things on a higher level. Helen |
|
Advert | |
|
10-15-2011, 02:20 PM | #6 | |
Member
Posts: 21
Karma: 50
Join Date: Jun 2010
Location: Poland
Device: Sony PRS-600
|
As I said in my opening post - it does some harm. When you use file synchronization or version-control your library, every author name or book title change turns unexpectedly costly (in terms of network traffic or disk storage)
The problem is not in the name format, but in its strict dependency on metadata. Quote:
Well, Kovid said his opinion and I am to live with it. Last edited by Mekk; 10-15-2011 at 02:24 PM. |
|
10-15-2011, 06:24 PM | #7 | |
Wizard
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
Quote:
I am not sure how changing the file structure would affect or improve this though. If I change an author name globally from within calibre I simply get a new name on the directory. If I cahnge it on an individual book for authors with more than one book, I ge a new directory and author listing. AFAIK there is no way to know without human intervention which authors/books are identical if you spell the names differently. The dependancy on metadata for folder naming is restricted to author and title and the dependency of the title being associated with the author. If for example, I have an author listed as Francis Paul Wilson and F. Paul Wilson whom I know are the same (human intervention ) How would them being listed in the folder structure as 8079 and 11136 and then being consolidated to 11136 make a difference from them being consolidated to F. Paul Wilson? I am seriously interested in what using only numbers instead of author names would accomplish in database terms (or any other terms). Helen |
|
10-15-2011, 06:34 PM | #8 |
Well trained by Cats
Posts: 29,799
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
If you do what Project Gutenberg does and only assign a number to the title: Making a change to the title is only a DB change. Change the Author, same-o.
all would be needed is a re-write of metadata.opf for that number. Way less net traffic. The backup of the metadata inside the book folder is there in case of a complete DB meltdown. |
10-15-2011, 06:46 PM | #9 | |
Member
Posts: 21
Karma: 50
Join Date: Jun 2010
Location: Poland
Device: Sony PRS-600
|
Quote:
In case of merge, if we insist on 1-1 between id and author, then copying turns necessary. But maybe one could just let have a few id's mapped to the same name - then again, no copying. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
transliteration in file&directory names | vadim_k | Calibre | 4 | 11-14-2011 07:04 AM |
DR1000 Unusual directory names | andre8x8 | iRex | 8 | 10-04-2011 09:28 AM |
Authors with a two last names | Rumpelteazer | Calibre | 14 | 07-06-2011 06:34 PM |
PRS-950 Changing file names / Book titles and authors | sarabadara | Sony Reader | 2 | 12-26-2010 05:28 PM |
How to file authors with language-dependent names? | Jellby | Workshop | 6 | 01-24-2010 05:21 PM |