01-17-2010, 01:16 PM | #1 |
Addict
Posts: 334
Karma: 1234
Join Date: Jul 2009
Location: Hindelbank, Switzerland
Device: P990i, PRS 505
|
set meta data with ebook-meta and ebook-convert
Hi,
It's me again. I have noticed a problem when setting meta data with ebook-meta or ebook-convert. Sometimes the new meta data is just plain ignored: Code:
>ebook-meta --index=2355 Perry\ Rhodan\ Nr.\ 2355\ -\ Pabel\ Moewig\ Verlag.epub Original-Metadaten:: Title : Perry Rhodan Nr. 2355 Author(s) : Pabel Moewig Verlag [Verlag, Pabel Moewig] Publisher : KEP Book Producer : calibre (0.6.33) [http://calibre-ebook.com] Tags : Perry Rhodan, Science-Fiction Series : PRZ34-TERRANOVA #56 Language : UND Rating : 8 Timestamp : 2009-05-31 16:40:14 Published : 2009-05-31 16:40:14 Ge?nderte Metadaten:: Title : Perry Rhodan Nr. 2355 Author(s) : Pabel Moewig Verlag [Verlag, Pabel Moewig] Publisher : KEP Book Producer : calibre (0.6.33) [http://calibre-ebook.com] Tags : Perry Rhodan, Science-Fiction Series : PRZ34-TERRANOVA #56 Language : UND Rating : 8 Timestamp : 2009-05-31 16:40:14 Published : 2009-05-31 16:40:14 And: why is the language set to UND? Martin Last edited by krischik; 01-17-2010 at 01:19 PM. |
01-17-2010, 02:04 PM | #2 |
creator of calibre
Posts: 44,336
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
UND is unknown. IIRC you have to set both series and series index for it to stick.
|
Advert | |
|
01-18-2010, 08:25 AM | #3 | |
Addict
Posts: 334
Karma: 1234
Join Date: Jul 2009
Location: Hindelbank, Switzerland
Device: P990i, PRS 505
|
More difficult then that
Quote:
Code:
>ebook-meta Perry\ Rhodan\ Nr.\ 2300\ -\ Pabel\ Moewig\ Verlag.epub --series="PRZ34-TERRANOVA" --index=1 Original-Metadaten:: Title : Perry Rhodan Nr. 2300 Author(s) : Pabel Moewig Verlag Ge?nderte Metadaten:: Title : Perry Rhodan Nr. 2300 Author(s) : Pabel Moewig Verlag |
|
01-18-2010, 10:50 AM | #4 |
Addict
Posts: 334
Karma: 1234
Join Date: Jul 2009
Location: Hindelbank, Switzerland
Device: P990i, PRS 505
|
Another expample
Here another example. This is just the opf - so I can safely attach the file:
Code:
~/Documents/eBooks/Pabel Moewig Verlag/Perry Rhodan Nr. 2300 (212) Darwin martin@macpro-eth1 Mo Jan 18 16:45:51 standart 0 >calibredb show_metadata 212 --as-opf >Perry\ Rhodan\ Nr.\ 2300\ -\ Pabel\ Moewig\ Verlag.opf ~/Documents/eBooks/Pabel Moewig Verlag/Perry Rhodan Nr. 2300 (212) Darwin martin@macpro-eth1 Mo Jan 18 16:45:59 standart 0 >ebook-meta Perry\ Rhodan\ Nr.\ 2300\ -\ Pabel\ Moewig\ Verlag.opf --language=de Original-Metadaten:: Title : Perry Rhodan Nr. 2300 Author(s) : Pabel Moewig Verlag [Verlag, Pabel Moewig] Publisher : KEP Book Producer : calibre (0.6.34) [http://calibre.kovidgoyal.net] Tags : Perry Rhodan, Science-Fiction Series : PRZ34-TERRANOVA #1 Language : UND Rating : 8 Timestamp : 2009-05-31 16:40:00 Published : 2009-05-31 16:40:00 Ge?nderte Metadaten:: Title : Perry Rhodan Nr. 2300 Author(s) : Pabel Moewig Verlag [Verlag, Pabel Moewig] Publisher : KEP Book Producer : calibre (0.6.34) [http://calibre.kovidgoyal.net] Tags : Perry Rhodan, Science-Fiction Series : PRZ34-TERRANOVA #1 Language : UND Rating : 8 Timestamp : 2009-05-31 16:40:00 Published : 2009-05-31 16:40:00 ~/Documents/eBooks/Pabel Moewig Verlag/Perry Rhodan Nr. 2300 (212) Darwin martin@macpro-eth1 Mo Jan 18 16:46:03 standart 0 Regards Martin Last edited by krischik; 01-18-2010 at 10:52 AM. Reason: added more explanation |
01-18-2010, 11:19 AM | #5 |
Addict
Posts: 334
Karma: 1234
Join Date: Jul 2009
Location: Hindelbank, Switzerland
Device: P990i, PRS 505
|
Set metadata from filename only
When I wanted to try setting the author and title which should be supported by any format I got:
Code:
>ebook-meta Perry\ Rhodan\ Nr.\ 2300\ -\ Pabel\ Moewig\ Verlag.epub --authors="Robert Feldhoff" --title="Vorboten des Chaos" Original-Metadaten:: Title : Perry Rhodan Nr. 2300 Author(s) : Pabel Moewig Verlag Ge?nderte Metadaten:: Title : Perry Rhodan Nr. 2300 Author(s) : Pabel Moewig Verlag Now in my understanding the command-line tool should not honour a GUI flag. If this can not be fixed easily then at least a warning should be displayed to inform the user that meta data is read from file-name only. Martin |
Advert | |
|
01-18-2010, 11:23 AM | #6 |
creator of calibre
Posts: 44,336
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
ebook-meta doesn't set metadata in OPF files. There was a bug in it that could affect setting series info in other files, which I will fix for the next release.
|
01-19-2010, 11:40 AM | #7 |
Addict
Posts: 334
Karma: 1234
Join Date: Jul 2009
Location: Hindelbank, Switzerland
Device: P990i, PRS 505
|
I noticed something else as well: I a directory contains an OPF file then ebook-meta does not work properly.
I noticed while debugging the following code: Code:
ebook-meta \ .... \ "${File_Name:r:t}.epub" ; ebook-meta \ --to-opf="${File_Name:r:t}.opf" \ "${File_Name:r:t}.epub" ; calibredb set_metadata "${ID}" "${File_Name:r:t}.opf" Martin PS: Windows users: calibredb set_metadata might rename the directory - so you should not cd into the directory. |
Tags |
ebook-convert, ebook-meta |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ebook-meta --to-opf segfaults | gurmuq | Calibre | 3 | 08-14-2010 09:36 PM |
Can't change metadata with ebook-meta | mumdigau | Calibre | 14 | 08-05-2010 08:58 PM |
ePub meta data | brudigia | ePub | 4 | 07-26-2010 12:58 PM |
Meta data problems | melhall | Sony Reader | 1 | 03-31-2008 10:58 PM |
PRS-500 Meta Data in Vista not available | Gamgee72 | Sony Reader Dev Corner | 2 | 09-12-2007 05:12 PM |