Quote:
Originally Posted by shighfield
I am using windows now so a windows .exe is the best for me. Syntax doesn't matter at all, I'm learning some python and am determined to find a way to hack this stuff into Calibre. Hence why I need commandline tools for everything.
I know it won't be part of the main calibre tree but I'm hopful I can get it working enough for Windows users to be able to muck with.
|
Ooohhhh, calibre hacking...
Here is a quick and dirty attempt at a .imp metadata edit program called impmeta. It is based on ebook.pl from EBook-Tools by Zed Pobre. The readme for it is as follows:
Code:
impmeta - Set specific metadata values in an ETI .imp file.
Usage:
impmeta filename.imp [Options]
Options:
--input filename.imp | -i filename.imp
Specify the input filename. This can also be specified as the first argument, in which case the -i option will be ignored.
--output modified.imp | -o modified.imp
Specify the output filename. If not specified, the input file will be overwritten.
--identifier
Specify the identifier metadata.
--category | --cat | --c
Specify the category metadata.
--subcategory | --subcat
Specify the subcategory metadata.
--title | --t
Specify the title metadata.
--lastname
Specify the author last name metadata.
--middlename
Specify the author middle name metadata.
--firstname | --author | --a
Specify the author first name metadata. Note that IMP files commonly place the full name in this component, and leave the middlename and lastname entries blank.
Examples
impmeta mybook.imp --title 'Fixed Title' --author 'John Q. Brandy'
impmeta -i mybook.imp -o fixed.imp --title 'Fixed Title' --cat "To Read"
Try it out first on some backups, and then when you sure it works for you, go live...
Anything you can think of that's missing or you want added?