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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-09-2013, 05:17 AM   #1
Budfudder
Enthusiast
Budfudder began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Nov 2010
Device: Kindle 3
Calibre ebook-meta can't empty metadata

I've been using ebook-meta to change the metadata on my .mobi files, and I'm trying to empty as many of the metadata slots as I can. So far I've discovered the following parameters to empty slots:

Code:
--tags=""
--publisher=" "
--comments=" "
My first question is why does --publisher=" " empty the publisher slot, rather than --publisher=""? To empty the tags slot you use --tags="" - why not the same for the publisher and comments slots?

My second question is around the Book Producer slot. I can't empty this - I can't even change its content, no matter what I do. I've tried --book-producer="", --book-producer=" " and even --book-producer="test", but it remains the same no matter what. Here's sample output:

Code:
X:\Personal\eBooks>ebook-meta esop.mobi --book-producer=""
Original metadata::
        Title               : Aesop's Fables
        Author(s)           : Aesop
        Book Producer       : calibre (0.7.16) [http://calibre-ebook.com]
        Tags                :
        Published           : 0101-01-01T00:00:00+00:00
        Identifiers         : isbn:9781593080624
        Comments            :

Changed metadata::
        Title               : Aesop's Fables
        Author(s)           : Aesop
        Book Producer       : calibre (0.7.16) [http://calibre-ebook.com]
        Tags                :
        Published           : 0101-01-01T00:00:00+00:00
        Identifiers         : isbn:9781593080624
        Comments            :

X:\Personal\eBooks>ebook-meta esop.mobi --book-producer=" "
Original metadata::
        Title               : Aesop's Fables
        Author(s)           : Aesop
        Book Producer       : calibre (0.7.16) [http://calibre-ebook.com]
        Tags                :
        Published           : 0101-01-01T00:00:00+00:00
        Identifiers         : isbn:9781593080624
        Comments            :

Changed metadata::
        Title               : Aesop's Fables
        Author(s)           : Aesop
        Book Producer       : calibre (0.7.16) [http://calibre-ebook.com]
        Tags                :
        Published           : 0101-01-01T00:00:00+00:00
        Identifiers         : isbn:9781593080624
        Comments            :

X:\Personal\eBooks>ebook-meta esop.mobi --book-producer="test"
Original metadata::
        Title               : Aesop's Fables
        Author(s)           : Aesop
        Book Producer       : calibre (0.7.16) [http://calibre-ebook.com]
        Tags                :
        Published           : 0101-01-01T00:00:00+00:00
        Identifiers         : isbn:9781593080624
        Comments            :

Changed metadata::
        Title               : Aesop's Fables
        Author(s)           : Aesop
        Book Producer       : calibre (0.7.16) [http://calibre-ebook.com]
        Tags                :
        Published           : 0101-01-01T00:00:00+00:00
        Identifiers         : isbn:9781593080624
        Comments            :
I've tried this with an old version of Calibre (0.8.something), 0.9.5 and the latest, 0.9.22. It seems to not work on any of them. Or am I doing something wrong?

Thanks for any help.
Budfudder is offline   Reply With Quote
Old 03-10-2013, 03:50 AM   #2
Budfudder
Enthusiast
Budfudder began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Nov 2010
Device: Kindle 3
Further to this, how can I empty the Languages metadata slot? I've done a bit of testing and from what I can see:

if the existing value of the Languages slot is "en", then --language=" " will empty the slot.

But if the existing value of the Languages slot is "eng", then it can't be changed at all - neither --language=" ", nor --language="" nor --language="en" will change it from "eng".

Last edited by Budfudder; 03-10-2013 at 03:57 AM.
Budfudder is offline   Reply With Quote
Advert
Old 03-10-2013, 10:13 AM   #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,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
It won't work because you are trying to make an invalid entry.
Go learn about Language codes
theducks is offline   Reply With Quote
Old 03-11-2013, 05:16 PM   #4
Budfudder
Enthusiast
Budfudder began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Nov 2010
Device: Kindle 3
Quote:
Originally Posted by theducks View Post
It won't work because you are trying to make an invalid entry.
Go learn about Language codes
Thanks so much for helping not in the slightest and being rude as well.
Budfudder is offline   Reply With Quote
Old 03-11-2013, 07:48 PM   #5
jgaiser
Omnivorous
jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.
 
jgaiser's Avatar
 
Posts: 3,281
Karma: 27978909
Join Date: Feb 2008
Location: Rural NW Oregon
Device: Kindle Voyage, Kindle Fire HD, Kindle 3, KPW1
Quote:
Originally Posted by Budfudder View Post
Thanks so much for helping not in the slightest and being rude as well.
Looked pretty helpful to me. You need to go find out about Language codes, because what you're trying to do is illegal.

And I suspect you're not going to be able to change Book Producer, because it's built into calibre *because* it's the Book Producer.
jgaiser is offline   Reply With Quote
Advert
Old 03-12-2013, 12:01 AM   #6
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by Budfudder View Post
Further to this, how can I empty the Languages metadata slot? I've done a bit of testing and from what I can see:

if the existing value of the Languages slot is "en", then --language=" " will empty the slot.

But if the existing value of the Languages slot is "eng", then it can't be changed at all - neither --language=" ", nor --language="" nor --language="en" will change it from "eng".
Good question, you might want to submit a bug report and see what Kovid says.

In reference to the Book Producer slot, calibre is in fact the book producer so this might be a choice by Kovid. You can ask in your bug report but I suspect if you want to clear that field you'll have to do it in a 3rd party app like Sigil.
DoctorOhh is offline   Reply With Quote
Old 03-12-2013, 06:29 PM   #7
Budfudder
Enthusiast
Budfudder began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Nov 2010
Device: Kindle 3
Quote:
Originally Posted by jgaiser View Post
Looked pretty helpful to me. You need to go find out about Language codes, because what you're trying to do is illegal.
And I suspect you're not going to be able to change Book Producer, because it's built into calibre *because* it's the Book Producer.
Thanks for this - that had honestly never occurred to me. It's strange that there's an option to do it when it appears you can't do it.
Budfudder is offline   Reply With Quote
Old 03-12-2013, 06:30 PM   #8
Budfudder
Enthusiast
Budfudder began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Nov 2010
Device: Kindle 3
Quote:
Originally Posted by DoctorOhh View Post
Good question, you might want to submit a bug report and see what Kovid says.

In reference to the Book Producer slot, calibre is in fact the book producer so this might be a choice by Kovid. You can ask in your bug report but I suspect if you want to clear that field you'll have to do it in a 3rd party app like Sigil.
Thanks a lot, I wasn't aware there was a bug reporting mechanism. I'll use it.
Budfudder 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
How can I remove Published Date from metadata using ebook-meta Pixelastic Library Management 6 11-10-2012 05:11 AM
New Metadata class (empty books) and custom columns kiwidude Development 14 03-12-2011 06:47 AM
Differences between library and reader: Force calibre to write metadata into ebook durtreg Calibre 17 01-28-2011 04:30 AM
Can't change metadata with ebook-meta mumdigau Calibre 14 08-05-2010 08:58 PM
set meta data with ebook-meta and ebook-convert krischik Calibre 6 01-19-2010 11:40 AM


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


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