Thread: Plugins
View Single Post
Old 01-03-2009, 12:56 PM   #3
junkml
Addict
junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.
 
junkml's Avatar
 
Posts: 277
Karma: 1004969
Join Date: Mar 2007
Device: Sony Reader
Quote:
Originally Posted by kovidgoyal View Post
oops small typo in the hello world plugin:

change
Code:
set_metadata(file, ext, mi)

to
set_metadata(file, mi, ext)
But you should be aware that calibre can't set the metadata in lit files. Setting only works for rtf, lrf and epub
Cool thanks.

Another question, though. Is there any way to have Calibre re-read the metadata from the file within the plugin?
junkml is offline   Reply With Quote