Quote:
Originally Posted by chaley
I added your request to my patch, but still using the evil environment variable. 
|
If you don't want to use an environment variable, it's pretty easy to add a new config checkbox to the GUI, and store the config option. I did that with the new overwrite_author_title_metadata option seen in the general config screen and on the single book fetch metadata screen.
I don't see any reason why you can't add another option, settable by GUI, that applies to both GUI and commandline.
calibre\gui2\dialogs\config\config.ui creates the new checkbox widget in the main config screen.
calibre\gui2\__init__.py adds the new configuration flag and sets its true/false default.
You can see an example of checking the status of the saved configuration flag in calibre\gui2\metadata.py to control program flow.