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 11-09-2012, 09:03 PM   #1
Pixelastic
Junior Member
Pixelastic began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Nov 2012
Device: FBReader on Android
How can I remove Published Date from metadata using ebook-meta

Hi,

I'm trying to remove the metadata "Published Date" from the metadata of an epub file using `ebook-meta`.

I can change the value just fine, but do not find the way to completly remove it. If I pass a value of 0 or -1 it just convert it to a date, and any non-numeric string throws an error.

Here is what I tried so far :

Code:
ebook-meta input.epub --date='0'
ebook-meta input.epub --date='-1'
ebook-meta input.epub --date='-'
ebook-meta input.epub -d '0'
What is the correct way to remove this data ? With any string-based metadata I simply pass an empty string when I want to clear it, but an empty string as a different effect on a date.
Pixelastic is offline   Reply With Quote
Old 11-09-2012, 09:08 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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You cannot. Set the date to 1-1-101 and calibre will treat it as unknown.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-10-2012, 12:46 AM   #3
Pixelastic
Junior Member
Pixelastic began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Nov 2012
Device: FBReader on Android
Thanks. Might be worth adding it to the `ebook-meta --help`.
Pixelastic is offline   Reply With Quote
Old 11-10-2012, 12:52 AM   #4
Pixelastic
Junior Member
Pixelastic began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Nov 2012
Device: FBReader on Android
Oh, actually I posted without trying it first, and it does not seem to work.


Code:
$ ebook-meta input.epub --date=1-1-101
Original metadata::
	Title               : Le Bûcher d'un Roi
	Title sort          : Le Trône de Fer 13 - Le Bûcher d'un Roi
	Author(s)           : Georges R.R. MARTIN [MARTIN, Georges R.R.]
	Series              : Le Trône de Fer #13
	Languages           : fra
	Published           : 0100-12-31T12:00:00+00:00

Changed metadata::
	Title               : Le Bûcher d'un Roi
	Title sort          : Le Trône de Fer 13 - Le Bûcher d'un Roi
	Author(s)           : Georges R.R. MARTIN [MARTIN, Georges R.R.]
	Series              : Le Trône de Fer #13
	Languages           : fra
	Published           : 0100-12-31T12:00:00+00:00
Or maybe `ebook-meta` does not treat 1-1-101 as Unknown in read mode ?
Pixelastic is offline   Reply With Quote
Old 11-10-2012, 12:53 AM   #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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The calibre GUI will treat it as unknown, not ebook-meta
kovidgoyal is offline   Reply With Quote
Advert
Old 11-10-2012, 04:47 AM   #6
Pixelastic
Junior Member
Pixelastic began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Nov 2012
Device: FBReader on Android
Ok thanks, this will do for now. Any plan for adding the ability to remove metadata (opposed to changing it) in the future ?

Also, I'd like to mention that I appreciate the quick answers from the creator of the tools himself!
Pixelastic is offline   Reply With Quote
Old 11-10-2012, 05:11 AM   #7
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No plans.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove Month In Published Column (Edit Meta Info) JayLaFunk Library Management 12 09-24-2011 10:29 AM
'Published date' and 'originally published date' Arrghus Calibre 2 07-29-2011 12:43 AM
Bulk Changing Published Date To Date hmf Calibre 4 10-19-2010 10:19 PM
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 06:14 AM.


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