01-18-2019, 07:06 PM | #1 |
Member
Posts: 24
Karma: 10
Join Date: Jan 2019
Location: England
Device: KT4
|
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 07:08 PM. |
01-18-2019, 10:32 PM | #2 |
creator of calibre
Posts: 44,380
Karma: 23766374
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.
|
01-19-2019, 01:39 PM | #3 |
Member
Posts: 24
Karma: 10
Join Date: Jan 2019
Location: England
Device: KT4
|
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? |
01-19-2019, 11:53 PM | #4 |
creator of calibre
Posts: 44,380
Karma: 23766374
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. |
01-20-2019, 02:40 PM | #5 |
Member
Posts: 24
Karma: 10
Join Date: Jan 2019
Location: England
Device: KT4
|
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 |
01-20-2019, 08:44 PM | #6 |
Member
Posts: 24
Karma: 10
Join Date: Jan 2019
Location: England
Device: KT4
|
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! |
01-20-2019, 09:07 PM | #7 |
Bibliophagist
Posts: 39,715
Karma: 154147706
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
01-20-2019, 09:14 PM | #8 |
null operator (he/him)
Posts: 20,946
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
Tags |
command line, cover, ebook-convert, metadata |
|
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 12:30 AM |
Command Line Conversion | loo23 | Conversion | 3 | 04-07-2012 03:33 PM |
Calibre Command Line Conversion | bmwr1200c | Calibre | 1 | 08-10-2011 07:04 PM |
command line mobi generation and covers | DarkAbsynthe | Calibre | 2 | 10-29-2010 10:33 PM |
Command line conversion not working | rockeh | Calibre | 1 | 08-24-2010 06:23 PM |