From a8c1ae766af328dd29cfce6383869e4944ec2e3b Mon Sep 17 00:00:00 2001 From: evilhero Date: Tue, 15 Jan 2013 14:32:31 -0500 Subject: [PATCH] FIX: (#132) values weren't persistent in config file --- mylar/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mylar/__init__.py b/mylar/__init__.py index 3da63556..fcf07162 100755 --- a/mylar/__init__.py +++ b/mylar/__init__.py @@ -263,7 +263,7 @@ def initialize(): AUTOWANT_ALL = bool(check_setting_int(CFG, 'General', 'autowant_all', 0)) AUTOWANT_UPCOMING = bool(check_setting_int(CFG, 'General', 'autowant_upcoming', 1)) COMIC_COVER_LOCAL = bool(check_setting_int(CFG, 'General', 'comic_cover_local', 0)) - PREFERRED_QUALITY = check_setting_int(CFG, 'General', 'preferred_quality', 0) + PREFERRED_QUALITY = bool(check_setting_int(CFG, 'General', 'preferred_quality', 0)) CORRECT_METADATA = bool(check_setting_int(CFG, 'General', 'correct_metadata', 0)) MOVE_FILES = bool(check_setting_int(CFG, 'General', 'move_files', 0)) RENAME_FILES = bool(check_setting_int(CFG, 'General', 'rename_files', 0)) @@ -504,10 +504,10 @@ def config_write(): new_config['General']['libraryscan_interval'] = LIBRARYSCAN_INTERVAL new_config['General']['download_scan_interval'] = DOWNLOAD_SCAN_INTERVAL new_config['General']['interface'] = INTERFACE - new_config['General']['autowant_all'] = AUTOWANT_ALL - new_config['General']['autowant_upcoming'] = AUTOWANT_UPCOMING - new_config['General']['preferred_quality'] = PREFERRED_QUALITY - new_config['General']['comic_cover_local'] = COMIC_COVER_LOCAL + new_config['General']['autowant_all'] = int(AUTOWANT_ALL) + new_config['General']['autowant_upcoming'] = int(AUTOWANT_UPCOMING) + new_config['General']['preferred_quality'] = int(PREFERRED_QUALITY) + new_config['General']['comic_cover_local'] = int(COMIC_COVER_LOCAL) new_config['General']['correct_metadata'] = int(CORRECT_METADATA) new_config['General']['move_files'] = int(MOVE_FILES) new_config['General']['rename_files'] = int(RENAME_FILES)