Feature request: The command line interface should allow to override author and some other metadata
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The command line interface should allow to override author of the book and possible some other metadata.
Current state:
User can create an empty book and specify title, author and ISBN of the book.
If user specifies a file to import, all the metadata (at least author, I didn't check the others) are derived from the file contents or from the file name (depends on settings of Calibre). Consider for example the folowing command
calibredb add -a "Some cool author" -t "Excellent book" "dirname/some name - some title.txt"
It creates a book with author "some name" and title "some title". The arguments of -a -and -t are silently ignored.
Proposed bahaviour:
When the options -a, -t or -i are used, their arguments should override the values which calibre tries to guess from the filename or from the file contents. So the command above should create a book with author "Some cool author" and title "Excellent book".
What's the point
Some people have quite well structured collection on their harddisk, where they have a separate directory for each author and the books inside, but the (book) filename does not contain the author name, or the author name is somehow mangled, truncated etc. Since the standard Calibre cannot read the author name from the directory name, this solution is a workaround for people who need it. It is quite simple to write a command which imports the whole directory of books and give them the same author name.
Implementation should be straightforward. The functionality is implemented in file /src/calibre/
Related branches
Changed in calibre: | |
status: | Fix Released → Incomplete |
This isn't worth the effort to me. You can use ebook-meta to set the metadata -as-opf and
in the files before importing, or use calibredb show_metadata-
calibredb set_metadata to change the emtadata after importing. If you really
want this functionality, submit a patch, I will merge it.
status wontfix