04-27-2014, 09:56 AM | #1 |
Addict
Posts: 243
Karma: 44444
Join Date: Mar 2014
Device: Kindle PW2 special offers removed by Amazon for FREE
|
How to use file names as metadata when adding books
How can i add books to my calibre library, with the file names saved as "series namber"
the file names are just numbers, which i want to be able to sort my books by later. Last edited by user743; 04-27-2014 at 02:20 PM. Reason: edited |
04-27-2014, 11:29 AM | #2 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Under Preferences ==> Adding Books you can "read the metadata from the filename instead of the file contents" using the appropriate regex (it will explain details) BUT you cannot also get the embedded metadata. So the ONLY metadata you will have is that number.
|
Advert | |
|
04-27-2014, 11:41 AM | #3 |
Addict
Posts: 243
Karma: 44444
Join Date: Mar 2014
Device: Kindle PW2 special offers removed by Amazon for FREE
|
is there any way around that problem?!
maybe bulk editing the metadata later and using "<title>([^<]+)</title>" as the new title, if possible? Last edited by user743; 04-27-2014 at 11:44 AM. |
04-27-2014, 11:54 AM | #4 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
The problem is that you can only scan the book for metadata on import, and you can choose either embedded metadata or filename metadata but not both.
If you preserve the filename by using it as the metadata, you cannot later extract metadata from the file. What I would like calibre to do is offer an option that filename metadata should override embedded metadata, or at least act as an optional supplementary source of lower priority. Either way would allow both of us to save the original filename as meaningful custom metadata. Kovid, would it be possible to add an option that filename can be used only to supply metadata that isn't already embedded in the file? |
04-27-2014, 12:00 PM | #5 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Turn off reading metadata from files
Add the file Turn on reading metadata from files Read metadata from the file using the edit metadata dialog (top right area) This is a little tedious, but I personally dont have the motivation to make it less tedious, as I have never come across a book that has bad title/author metadata and good other kinds of metadata, with the exception of covers, which you can read from files, in bulk with the bulk edit metadata dialog. |
Advert | |
|
04-27-2014, 12:44 PM | #6 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Thanks for the info.
In case it motivates you to fix it, I'd like to explain why I'd use it. I keep a custom column with the original filename of my Amazon purchases which I use as my save template. This allows me to simply overwrite the old file with my calibre copy that has corrected metadata, and preserves the annotations for the book. Additionally when I delete a book from the device UI it leaves the annotations files behind allowing me to simply re-add the book from calibre and have my old annotations. For this I rely on a stable save filename. It is easier if this is the filename Amazon uses as well, since it works with both Amazon and non-Amazon books and I can redownload the annotations from Amazon if necessary then just update the book by overwriting. So I'd appreciate an enhanced add option -- but I understand if it's not worth the time to implement. calibre is still awesome, and I have it all working smoothly albeit with a little more effort than my laziness requests of me. Last edited by eschwartz; 04-27-2014 at 12:50 PM. Reason: typing-on-a-kindle-touch typos. |
04-27-2014, 10:19 PM | #7 |
Addict
Posts: 243
Karma: 44444
Join Date: Mar 2014
Device: Kindle PW2 special offers removed by Amazon for FREE
|
can you tell me the regex to save the filename in to a costom column called "filename".
edit apparently that's not a option so how do i save it as series. the file names look like this: with different 5 digit and "part" numbers. f_01234 f_01567_all f_01567_part_1 f_01567_part_23 thanks kovldgoyil for calibre and all your help! Last edited by user743; 04-27-2014 at 10:44 PM. |
04-28-2014, 05:08 AM | #8 | |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
04-28-2014, 07:27 AM | #9 |
Addict
Posts: 243
Karma: 44444
Join Date: Mar 2014
Device: Kindle PW2 special offers removed by Amazon for FREE
|
how do i add them two begin with, not in the title.
no matter what regex i use the whole filename becomes the title. Last edited by user743; 04-28-2014 at 07:32 AM. |
04-28-2014, 10:45 AM | #10 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
You can save to any column I believe...
Just ese a regex to read the filename and save the right section with a named capture group, named with the lookup name of the custom/column. |
Tags |
adding books, file name, sort, sorting |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extract MetaData from difficult file names | dempan | Library Management | 0 | 07-28-2013 03:01 PM |
Adding The Comment Section (Metadata) To A Mobi File | bbildman | Library Management | 2 | 03-01-2013 12:44 PM |
Help with "Guessing metadata from file names" | Justy | Library Management | 22 | 08-15-2011 06:13 AM |
Author names when adding books to Calibre | chilady1 | Calibre | 3 | 01-07-2010 08:10 PM |
Adding author names to imported books | rcs1000 | Sony Reader | 2 | 10-11-2006 12:29 PM |