Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-30-2010, 07:08 PM   #1
GlennMaples
Member
GlennMaples began at the beginning.
 
Posts: 17
Karma: 10
Join Date: May 2010
Device: none
Flexible internal file structure and a Usability question

It looks like that one of the changes made in the past few months has been the construction of an abstraction layer that allows deviation from the "set" internal file structure in Calibre.

Question: if we can denote the storage structure as something like: {author_sort}/{title}/{title} - {authors}

is there any reason we cannot also allow people to specify the input format similarly (ala media monkey) when adding files? This would be a lot more user friendly than asking the average bibliophile to write regex expressions.

I also (think) I read in a thread that the DB only holds the metadata for .txt files. Is this true???

thanks
-glenn
GlennMaples is offline   Reply With Quote
Old 05-30-2010, 07:23 PM   #2
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,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No you cannot change the internal file structure

Fell free to request a feature to allow placeholder based filename parsing

No it's not true
kovidgoyal is offline   Reply With Quote
Advert
Old 05-30-2010, 07:35 PM   #3
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,792
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by GlennMaples View Post
It looks like that one of the changes made in the past few months has been the construction of an abstraction layer that allows deviation from the "set" internal file structure in Calibre.

Question: if we can denote the storage structure as something like: {author_sort}/{title}/{title} - {authors}

is there any reason we cannot also allow people to specify the input format similarly (ala media monkey) when adding files? This would be a lot more user friendly than asking the average bibliophile to write regex expressions.

I also (think) I read in a thread that the DB only holds the metadata for .txt files. Is this true???

thanks
-glenn
Think about the can of worms there would be if everyone had there own version of Calibre file structure
Who would unravel the changes needed to be applied after every update. (Hint: Not Kovid)

Kovid may have made an error, leaving any reference to the author or title in the file structure. Use of non-intelligent "Calibre Keys" for file names on the library manager would eliminate all these "problems" by requiring the intended use of the UI to transfer or read a filed book.
theducks is offline   Reply With Quote
Old 05-31-2010, 12:32 PM   #4
GlennMaples
Member
GlennMaples began at the beginning.
 
Posts: 17
Karma: 10
Join Date: May 2010
Device: none
Kovid --My mistake, and I know that this was a sensitive issue in the past so not trying to raise this issue again. But I did copy that code from the app and was surprised and thought if the code was already written for one interface it wouldn't take much to add it to another.

theducks -- This is exactly how it works in media monkey -- you can store all your music files using any file naming convention you like. Which means that your backups and restores (especially in case of a DB failure) are much easier as you can include all important metadata in the file names for re-importation. And a flexible naming convention allows MM to play nicer with other apps.

Great app guys.

-glenn
GlennMaples is offline   Reply With Quote
Old 05-31-2010, 04:50 PM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,739
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by GlennMaples View Post
is there any reason we cannot also allow people to specify the input format similarly (ala media monkey) when adding files?
Hoping not to beat a dead horse:

One difference between audio files and ebooks is that all of the audio file formats of interest can (and do) store all metadata of interest within the file. When you change the metadata for a file in MediaMonkey, you change the music file, not the library. Ebooks do not, and in some cases cannot, store all metadata (consider txt files).

This fact means that although MediaMonkey (which I use) can recreate the library from the files no matter where the files are stored, calibre cannot. Because of this inconvenience, calibre must separate the metadata from the files, then choose some method to store the book files and stick to it. If it did not do this, then it would be incapable of presenting a unified user interface, and (perhaps more interestingly) knowing whether a given book format is in fact a copy of the given book.

If we could guarantee that all books were in a format that could store arbitrary metadata, then could guarantee that the metadata in the file followed the standards, then could guarantee that the metadata was complete, then we could avoid the fixed-path storage. Unfortunately, none of these three guarantees exist.
chaley is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
File Structure Question Tiburon Calibre 2 01-11-2010 09:21 PM
file structure after Calibre upgrade daesdaemar Calibre 1 11-27-2008 02:01 PM
Why no user file structure? MoSo Amazon Kindle 4 04-14-2008 08:17 AM
Question about the File structure bbusybookworm Amazon Kindle 3 11-23-2007 06:45 PM
Flat file structure...ugh! BobVA Sony Reader 7 11-03-2006 01:05 AM


All times are GMT -4. The time now is 09:08 AM.


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