![]() |
#1 |
Member
![]() Posts: 23
Karma: 10
Join Date: Aug 2010
Device: none
|
Can't change metadata with ebook-meta
Hi,
I'd like to change the metadata of a huge number of ebooks, so I would like to do that via a small batch file which repeatedly calls ebook-media with the appropiate data. But already my first manual try with ebook-media wasn't successful. I tried to change the author in an epub-file as follows: ebook-media "path\filename" -a "firstname lastname" But the metadata were left unchanged as could be seen from the output of ebook-meta in the terminal. I also tried '--authors' instead of '-a', but that didn't help either. Calibre (latest version) is running on an Windows XP Pro SP3 system. The file is not write protected. What am I doing wrong? Many thanks in advance for any help ciao mumdigau |
![]() |
![]() |
![]() |
#2 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Your post title says ebook-meta and your post content says ebook-media?
Have you tried it without the quotes? If -a isn't working try the full --authors option instead. I do all of my batch metadata updates via the gui, but the manual for ebook-meta is here. Good Luck. Last edited by DoctorOhh; 08-03-2010 at 10:16 AM. |
![]() |
![]() |
![]() |
#3 | |
Member
![]() Posts: 23
Karma: 10
Join Date: Aug 2010
Device: none
|
Quote:
Yes, I tried without quotes even though the manual says to use quotes if the arguments contain spaces. I tried both, -a and --authors, nop. I even changed path\filename so that it doesn't contain any spaces: no success. Any other ideas? mumdigau |
|
![]() |
![]() |
![]() |
#4 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
In other words what was the output of the job. I just ran it, the same way you said to and it worked fine. Here is the whole job from start to finish. Spoiler:
FYI, I am also using the latest version of Calibre (0.7.12) and my OS is also Windows XP Pro SP3. One last thought, this changes the metadata in the actual file not in Calibre's metadata.db. So after using ebook-meta to change the metadata in the book the change will not be shown in the Calibre GUI. I did it once more from the root directory actually specifying a path this time and it still worked fine. Spoiler:
Last edited by DoctorOhh; 08-03-2010 at 10:36 PM. |
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,159
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You probably have the option set to only read metadata from filenames.
|
![]() |
![]() |
![]() |
#6 |
Member
![]() Posts: 23
Karma: 10
Join Date: Aug 2010
Device: none
|
Hi,
I copied the file from Calibre's library to an external location, manipulated it there, deleted the original ebook via GUI in Calibre, and added the modified ebook again. Here is my call of ebook-meta followed by the output: Code:
E:\Programme\Calibre\ebook-meta "C:\0051 - Jagd nach dem Leben - Unbekannt.epub" -a "Kurt Brand" Original-Metadaten:: Title : 0051 - Jagd nach dem Leben Author(s) : Jagd nach dem [Unbekannt] Book Producer : calibre (0.6.20) [http://calibre-ebook.com] Timestamp : 2009-10-31T13:08:33+00:00 Published : 2009-10-31T13:08:33+00:00 Geänderte Metadaten:: Title : 0051 - Jagd nach dem Leben Author(s) : Jagd nach dem [Unbekannt] Book Producer : calibre (0.6.20) [http://calibre-ebook.com] Timestamp : 2009-10-31T13:08:33+00:00 Published : 2009-10-31T13:08:33+00:00 Best regards mumdigau |
![]() |
![]() |
![]() |
#7 | ||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
|
||
![]() |
![]() |
![]() |
#8 |
Member
![]() Posts: 23
Karma: 10
Join Date: Aug 2010
Device: none
|
I finally got it. I found out that the plugin for writing metadata was deactivated. After activation everything went fine.
Best regards mumdigau |
![]() |
![]() |
![]() |
#9 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
![]() ![]() |
|
![]() |
![]() |
![]() |
#10 |
Member
![]() Posts: 23
Karma: 10
Join Date: Aug 2010
Device: none
|
Hi,
Everything is running fine here now, except one thing: I can't change the cover via ebook-meta. The old covers stay unchanged. The terminal doesn' t show any error, but on the other side doesn't indicate that there has been a change to the covers: Code:
Original-Metadaten:: Title : 0051 Jagd nach dem Leben Title sort : 0051 Jagd nach dem Leben Author(s) : Kurt Brand [Brand, Kurt] Book Producer : calibre (0.6.20) [http://calibre-ebook.com] Series : Perry Rhodan Heftromane (Erstausgabe) #51 Timestamp : 2009-10-31T13:08:33+00:00 Published : 2009-10-31T13:08:33+00:00 Geänderte Metadaten:: Title : 0051 Jagd nach dem Leben Title sort : 0051 Jagd nach dem Leben Author(s) : Kurt Brand [Brand, Kurt] Book Producer : calibre (0.6.20) [http://calibre-ebook.com] Series : Perry Rhodan Heftromane (Erstausgabe) #51 Timestamp : 2009-10-31T13:08:33+00:00 Published : 2009-10-31T13:08:33+00:00 Any idea what's going wrong here? Best regards mumdigau |
![]() |
![]() |
![]() |
#11 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,159
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
setting covers in epub files requires the epub file to properly identify its cover, most epub files do not. And you need calibre 0.7.12
|
![]() |
![]() |
![]() |
#12 | |
Member
![]() Posts: 23
Karma: 10
Join Date: Aug 2010
Device: none
|
Quote:
Via GUI I can change the covers. And yes, I have latest version 0.7.12 installed. Ciao mumdigau |
|
![]() |
![]() |
![]() |
#13 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
I believe this means that if the cover is not properly set then the only way in calibre to add the cover is to convert the file. |
|
![]() |
![]() |
![]() |
#14 |
Member
![]() Posts: 23
Karma: 10
Join Date: Aug 2010
Device: none
|
@dwanthny
Thanks for your explanation. Indeed, the epubs I'm going to add to the library haven't their cover properly set. If I do that in Sigil then the cover will be replaced by ebook-meta. On the other hand, I tried a simple epub2epub conversion with ebook-convert (no options set besides --cover). This adds the specified image as a cover, the original image is still there, most probably since it isn't properly set as cover, and the new added cover looks somewhat strechted. The old image can easily be removed in Sigil, but in any way I have some manual work with Sigil (apparently there is no batch mode). That makes both procedures more or less infeasible, because I want to add more than 2500 ebooks to the library. At the moment, I see best chances in adapting the conversion process, i.e. replacing the image (not shure if this is possible), and avoiding that the new cover get stretched (that should be possible through properly set conversion options). Since ebook-convert can modify metadata, too, I could do all my changes in one go. Ciao mumdigau |
![]() |
![]() |
![]() |
#15 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
1. In the GUI there is an option under Preferences - Conversion - Structure Detection - if you check remove first image, then the first image will be removed when converting. 2. The image is slightly distorted because it is now rendered as a .SVG image and will stretch to fill the screen. If you prefer an unstretched image where the aspect ratio of the image remains in tact then go to Preferences - Conversion - Epub output. Here you will find two options that will do this. The Preserve cover aspect ratio, leaves the file as svg and it will not stretch to fit the window and thus not be distorted. The other option is to check No SVG cover, this will produce a jpeg for the cover that will not stretch to fit either. Some readers don't handle SVG images and this last option is primarily used for providing covers for those readers. So to get what you want, run the epub to epub conversion with remove first image and Preserve cover aspect ratio checked. If these are your saved default settings in the GUI they should affect the ebook-convert too. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to change source file without re-entering meta data? | therealjoeblow | Calibre | 4 | 06-29-2010 07:12 PM |
Any way to change metadata on Topaz? | Sydney's Mom | Kindle Formats | 2 | 03-23-2010 04:27 PM |
set meta data with ebook-meta and ebook-convert | krischik | Calibre | 6 | 01-19-2010 11:40 AM |
Change Metadata tags en masse | thibaulthalpern | Calibre | 1 | 03-20-2009 07:02 PM |
Can I change path/folder & Q re meta information loss | Scotch | Calibre | 2 | 12-31-2008 09:27 PM |