Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-10-2015, 01:46 PM   #1
JGB
Groupie
JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.
 
Posts: 162
Karma: 1000384
Join Date: Jul 2008
Device: PRS505
Pull comment data only from Metadata?

Is there a way to pull only the comment data from the ebook files metadata?
My filenames are already much more organized, and the only thing I really want out of the books is the comment data, which often pulls a short summary of the book.

Also, is there a way to use search and replace to move data to the comment field from a regular column field, maybe using the metadata plugboard or similar?
JGB is offline   Reply With Quote
Old 12-10-2015, 01:54 PM   #2
eschwartz
Irrational Optimist
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: 16,899
Karma: 66657949
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
1) No, there is no way to pick and choose which metadata you extract from the ebook file.


2) Yes, you can use the Bulk Metadata Edit, third tab (S&R) to copy metadata from one field to another (or overwrite the same field). Plugboards are only for certain fields, if you want the exported copies to have autogenerated metadata e.g. series info in title.

Do you have anything particular in mind? (Hint: details )
eschwartz is offline   Reply With Quote
 
Advertisement
Old 12-10-2015, 01:58 PM   #3
theducks
Cat Bathmat
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: 18,022
Karma: 14927894
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Astak Pocket Pro, K4NT,Galaxy Tab 2
Plugboard is for sending to devices

Bulk mode (more than one book, you will see a Search and Replace tab on the Metadata editor

You can specify both source and destination (if different)

2 passes might be needed
pass 1: copies the trapped values to new location
<adjust pattern>
pass 2: used to remove from source field

good REGEX foo handy
theducks is offline   Reply With Quote
Old 12-10-2015, 02:09 PM   #4
JGB
Groupie
JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.
 
Posts: 162
Karma: 1000384
Join Date: Jul 2008
Device: PRS505
I guess I just love the way it looks when you see a nice summary in the comment on the book. If I let Calibre import using metadata, I get to keep that, but it makes an awful mess out of the nicely organized names and series info I've put in the filenames. As long as I leave that unchecked everything plays nice except putting the summary in the comment from the metadata.

What's especially odd/annoying is that in some cases I know these are books where I downloaded the summary into the comment fields a long time ago, and exported them with that, but that was before I fixed all the file names, and so the series info etc wasn't actually in Calibre before(so it can't import that if I let it run from metadata, and often I manually looked up a book and pasted the summary so the download function doesn't find it).

I've had a look at search and replace, but I'm not sure it will work in this case.
Is there a way to get it to search in the metadata of the book(which I think is where Calibre saved the summary before), pull the data from that field, and input it into the comment section?

I can use search and replace to move stuff around, and used it to fix titles etc before, but this is data that exists somewhere in the book, but not in a column in Calibre(unless I let it pull all the metadata and make a mess again).


EDIT: Looking into the files, I can also see an ISDN in some cases, is there a way to bulk pull that value from metadata and feed it into a column using search and replace? Then I might have better luck with the download function to find the summary instead.

Last edited by JGB; 12-10-2015 at 02:12 PM.
JGB is offline   Reply With Quote
Old 12-10-2015, 02:22 PM   #5
eschwartz
Irrational Optimist
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: 16,899
Karma: 66657949
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
And once again, you cannot pick and choose which metadata you pull from the book file. Not even in S&R. (Which never looks inside the files, on account of it is an S&R utility not a get-metadata-from-the-book utility.)

But if you got the metadata in order by filename, rather than by editing the metadata (like in calibre) then maybe you shouldn't have tried maintaining metadata in two locations.

Perhaps you could use a script to extract the comments metadata via ebook-meta.exe and modify the book record via calibredb.exe
eschwartz is offline   Reply With Quote
Old 12-10-2015, 02:26 PM   #6
JGB
Groupie
JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.
 
Posts: 162
Karma: 1000384
Join Date: Jul 2008
Device: PRS505
Oh I think I see what you're saying, so I import it into Calibre using file names to set the columns, then export it again via save to disk(will that over-write the bad metadata?)
Then import again using the metadata this time, and I should have everything nicely formatted?

I'll look into those programs, never heard of them before!
JGB is offline   Reply With Quote
Old 12-10-2015, 02:30 PM   #7
eschwartz
Irrational Optimist
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: 16,899
Karma: 66657949
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Well, exporting to disk will wipe the current comments metadata and replace it with the contents of the calibre column.

The programs I mentioned are part of calibre's command-line interface.
calibredb.exe allows you to non-interactively manipulate your calibre library.
ebook-meta.exe is a way to print metadata for any book format supported by calibre.
eschwartz is offline   Reply With Quote
Old 12-10-2015, 02:44 PM   #8
JGB
Groupie
JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.
 
Posts: 162
Karma: 1000384
Join Date: Jul 2008
Device: PRS505
Darn. Here I thought there was a nice neat solution.
So even though Calibre had those fields blank and the book didn't I'm still out of luck, it'll overwrite the data with a blank? I'll see what I can do with those two, no good with the command line though!

Thanks or the helpful ideas, this is at much more exciting than banging my head on the keyboard :-)

EDIT: I'd already tried it before I saw your reply, it looks like the covers at least are in the metadata still somehow after saving to disk(although they didn't show up during import) I clicked set from ebook file after re-importing and it appeared.
JGB is offline   Reply With Quote
Old 12-12-2015, 12:35 PM   #9
Krazykiwi
Enthusiast
Krazykiwi could sell banana peel slippers to a Deveel.Krazykiwi could sell banana peel slippers to a Deveel.Krazykiwi could sell banana peel slippers to a Deveel.Krazykiwi could sell banana peel slippers to a Deveel.Krazykiwi could sell banana peel slippers to a Deveel.Krazykiwi could sell banana peel slippers to a Deveel.Krazykiwi could sell banana peel slippers to a Deveel.Krazykiwi could sell banana peel slippers to a Deveel.Krazykiwi could sell banana peel slippers to a Deveel.Krazykiwi could sell banana peel slippers to a Deveel.Krazykiwi could sell banana peel slippers to a Deveel.
 
Posts: 30
Karma: 3088
Join Date: Jan 2013
Device: Too many random androids to list
You could fake it using the download metadata feature, and turning off all the other fields except for Comments.

(Ctrl-D, configure download, pick your sources and uncheck all the other fields on the right hand side.)
Krazykiwi is offline   Reply With Quote
Old 12-12-2015, 08:41 PM   #10
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 8,535
Karma: 11052666
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD
If I understand it, you want to use calibre to fix the metadata (mainly the comments) but store the books in your own file structure with your own file names. And those file names are made up of the metadata for the books such as title, author and series info.

If that is right, you can import the books into calibre. In the preferences, there is an option to read the metadata from the file name. You need to build a regex for this that matches the naming you use.

Then, you download the metadata. As Krazykiwi suggested, you can limit this to just the comments. Personally, I would download them all.

LAstly, use "Save to disk" to export the book. This uses a file name template. You should be able to construct the file name you want.
davidfor is online now   Reply With Quote
Old 12-14-2015, 02:02 AM   #11
JGB
Groupie
JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.JGB ought to be getting tired of karma fortunes by now.
 
Posts: 162
Karma: 1000384
Join Date: Jul 2008
Device: PRS505
Hi David,
Sorry what I want is for Calibre to set the metadata in the library from the file names I have set. I've got the regex working correctly to do that so everything is nice and neat. I was hoping to set the remainder of the metadata in Calibre from the info contained within the ebook file, since there's often good info in there. I can limit the metadata download but it doesn't always find the info I'm looking for. When I import the file and use the metadata within it I can see the info I want in all the other sections, but it messes up some of the basics I want it to get from the filenames instead of in the included metadata.
Basically I was looking for a way to do the same as the "load cover from ebook file" function but for selected metadata sections only.
JGB is offline   Reply With Quote
Old 12-14-2015, 11:10 AM   #12
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,223
Karma: 781373
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Quote:
Originally Posted by JGB View Post
Basically I was looking for a way to do the same as the "load cover from ebook file" function but for selected metadata sections only.
I do not think that is possible in Calibre at the moment. When you pull metadata from within the book it is an all-or-nothing action.

You could raise it as a enhancement request!
itimpi is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pull Hyperlinks from Metadata tarisea Plugins 6 06-26-2014 02:33 AM
Adding The Comment Section (Metadata) To A Mobi File bbildman Library Management 2 03-01-2013 01:44 PM
Metadata Plugboard Data in a Custom Column nynaevelan Library Management 2 01-10-2012 01:54 PM
Metadata comment section problem clady Calibre 3 09-24-2011 09:13 PM
Transfer & View Comment Metadata? TWizz Kobo Reader 3 08-04-2011 01:23 AM


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


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