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 04-27-2014, 09:56 AM   #1
user743
Addict
user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.
 
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
user743 is offline   Reply With Quote
Old 04-27-2014, 11:29 AM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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.
eschwartz is offline   Reply With Quote
Advert
Old 04-27-2014, 11:41 AM   #3
user743
Addict
user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.
 
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.
user743 is offline   Reply With Quote
Old 04-27-2014, 11:54 AM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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?
eschwartz is offline   Reply With Quote
Old 04-27-2014, 12:00 PM   #5
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,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.
kovidgoyal is offline   Reply With Quote
Advert
Old 04-27-2014, 12:44 PM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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.
eschwartz is offline   Reply With Quote
Old 04-27-2014, 10:19 PM   #7
user743
Addict
user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.
 
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.
user743 is offline   Reply With Quote
Old 04-28-2014, 05:08 AM   #8
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by user743 View Post
can you tell me the regex to save the filename in to a costom column called "filename".

edit
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
@user743 - In Preferences->Add your own columns you could try creating a custom column with type Text column for keeping series-like information

BR
BetterRed is online now   Reply With Quote
Old 04-28-2014, 07:27 AM   #9
user743
Addict
user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.
 
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.
user743 is offline   Reply With Quote
Old 04-28-2014, 10:45 AM   #10
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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.
eschwartz is offline   Reply With Quote
Reply

Tags
adding books, file name, sort, sorting


Forum Jump

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


All times are GMT -4. The time now is 06:32 AM.


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