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

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 01-18-2019, 08:06 PM   #1
littlenellie
Junior Member
littlenellie began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2019
Device: none
Question Command line conversion not including metadata in cover generation

Hi,

I'm trying to convert files via a batch file, which works fine with just the filename using this syntax:
ebook-convert "filename.html" "filename.epub"

What I'd like is to add the publisher name to the front cover. In the GUI, I've set the sub-title template to {publisher}, and unchecked the 'get metadata from file only' option. When I generate covers from the GUI, it works.

But when I run it from the CLI or batch the metadata isn't added to the cover. The syntax I'm using is:
ebook-convert "filename.html" "filename.epub" --publisher "publisher name"

Am I missing something? Should this work?

Last edited by littlenellie; 01-18-2019 at 08:08 PM.
littlenellie is offline   Reply With Quote
Old 01-18-2019, 11:32 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: 34,057
Karma: 10261488
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
As I recall, EPUB default cover generation does not use the full cover generation facility from the GUI, it only has title, series and author available to it.
kovidgoyal is offline   Reply With Quote
Old 01-19-2019, 02:39 PM   #3
littlenellie
Junior Member
littlenellie began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2019
Device: none
Thanks. I tried changing it to series but got the same result: it works in the GUI but nothing appears in the cover when it's generated via the CLI.

Are there any metadata items that can be added to the cover that way? Is that not what the --metadata option is for?
littlenellie is offline   Reply With Quote
Old 01-20-2019, 12:53 AM   #4
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: 34,057
Karma: 10261488
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Works for me with the following command line:

ebook-convert test.txt .epub --series XXX --series-index 3 --title test --authors me

the cover in the epub had title, authors and series in it.
kovidgoyal is offline   Reply With Quote
Old 01-20-2019, 03:40 PM   #5
littlenellie
Junior Member
littlenellie began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2019
Device: none
Thumbs up

Aha! I hadn't included the series index - when I added that in the series name shows as well. Both parts are required, then.

Thank you! That's saved me a lot of editing through the GUI.

I appreciate your help

littlenellie is offline   Reply With Quote
Old 01-20-2019, 09:44 PM   #6
littlenellie
Junior Member
littlenellie began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2019
Device: none
Incidentally, is there a way to NOT have the series number show up on the cover?

I tried leaving it blank or setting it to a space but then the series name does show.

Thanks!
littlenellie is offline   Reply With Quote
Old 01-20-2019, 10:07 PM   #7
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 5,464
Karma: 25244745
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura One, Aura H2O, Aura HD, Nexus 7 HD, iPad Air, Tolino epos
Quote:
Originally Posted by littlenellie View Post
Incidentally, is there a way to NOT have the series number show up on the cover?

I tried leaving it blank or setting it to a space but then the series name does show.

Thanks!
AFAIK, trying to use series without avalid series index is not going to work.
DNSB is offline   Reply With Quote
Old 01-20-2019, 10:14 PM   #8
BetterRed
null operator
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: 12,196
Karma: 10633638
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DNSB View Post
AFAIK, trying to use series without avalid series index is not going to work.
I tried it once for some obscure reason, didn't work.

As the song goes, they're like love and marriage, can't have one w'out t'other

BR
BetterRed is offline   Reply With Quote
Reply

Tags
command line, cover, ebook-convert, metadata

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line: How to embed color default cover instead of missing cover? EbokJunkie Conversion 9 07-22-2015 01:30 AM
Command Line Conversion loo23 Conversion 3 04-07-2012 04:33 PM
Calibre Command Line Conversion bmwr1200c Calibre 1 08-10-2011 08:04 PM
command line mobi generation and covers DarkAbsynthe Calibre 2 10-29-2010 11:33 PM
Command line conversion not working rockeh Calibre 1 08-24-2010 07:23 PM


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


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