View Single Post
Old 02-04-2010, 12:20 PM   #29
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by chaley View Post
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.
Starson17 is offline   Reply With Quote