Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 10-14-2011, 10:26 AM   #1
Mekk
Member
Mekk is on a distinguished road
 
Mekk's Avatar
 
Posts: 21
Karma: 50
Join Date: Jun 2010
Location: Poland
Device: Sony PRS-600
Question 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?
Mekk is offline   Reply With Quote
Old 10-14-2011, 11:03 AM   #2
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
See the sticky post on this.
Manichean is offline   Reply With Quote
Advert
Old 10-14-2011, 04:49 PM   #3
Mekk
Member
Mekk is on a distinguished road
 
Mekk's Avatar
 
Posts: 21
Karma: 50
Join Date: Jun 2010
Location: Poland
Device: Sony PRS-600
Quote:
Originally Posted by Manichean View Post
Both this post, and FAQ entry, carefully explain that there is no need to keep book metadata in the directory structure as it is better managed by calibre. I wholeheartedly agree…
Mekk is offline   Reply With Quote
Old 10-14-2011, 08:11 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is online now   Reply With Quote
Old 10-14-2011, 09:40 PM   #5
speakingtohe
Wizard
speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.
 
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
Quote:
Both this post, and FAQ entry, carefully explain that there is no need to keep book metadata in the directory structure as it is better managed by calibre. I wholeheartedly agree…
There is no need but it does no harm.

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
speakingtohe is offline   Reply With Quote
Advert
Old 10-15-2011, 02:20 PM   #6
Mekk
Member
Mekk is on a distinguished road
 
Mekk's Avatar
 
Posts: 21
Karma: 50
Join Date: Jun 2010
Location: Poland
Device: Sony PRS-600
Quote:
Originally Posted by speakingtohe View Post
There is no need but it does no harm.
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:
Longer file folder names can be a bit of a pain
In fact I happened to get "file name too long" errors when I tried moving my library deeper in my directory hierarchy, but there I exaggerated a bit in a book title, so it is not that important.

Well, Kovid said his opinion and I am to live with it.

Last edited by Mekk; 10-15-2011 at 02:24 PM.
Mekk is offline   Reply With Quote
Old 10-15-2011, 06:24 PM   #7
speakingtohe
Wizard
speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.
 
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
Quote:
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)
Ahh I do not use dropbox as my library is large, so I am unaware of the implications.
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
speakingtohe is offline   Reply With Quote
Old 10-15-2011, 06:34 PM   #8
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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.
theducks is offline   Reply With Quote
Old 10-15-2011, 06:46 PM   #9
Mekk
Member
Mekk is on a distinguished road
 
Mekk's Avatar
 
Posts: 21
Karma: 50
Join Date: Jun 2010
Location: Poland
Device: Sony PRS-600
Quote:
Originally Posted by speakingtohe View Post
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?
First and aforemost, if you have *only* F. Paul Wilson, but decide to use his full name and update it to Francis Paul Wilson, then – with numeric directories – you have no on-disk changes at all, only metadata changes. Ditto for book titles (which I edit more often then authors)

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.
Mekk is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 09:55 PM.


MobileRead.com is a privately owned, operated and funded community.