|
@ -608,7 +608,8 @@ def initialize(consoleLogging=True): |
|
|
|
|
|
|
|
|
USENET_RETENTION = check_setting_int(CFG, 'General', 'usenet_retention', 500) |
|
|
USENET_RETENTION = check_setting_int(CFG, 'General', 'usenet_retention', 500) |
|
|
|
|
|
|
|
|
DAILYSEARCH_FREQUENCY = check_setting_int(CFG, 'General', 'dailysearch_frequency', DEFAULT_DAILYSEARCH_FREQUENCY) |
|
|
DAILYSEARCH_FREQUENCY = check_setting_int(CFG, 'General', 'dailysearch_frequency', |
|
|
|
|
|
DEFAULT_DAILYSEARCH_FREQUENCY) |
|
|
if DAILYSEARCH_FREQUENCY < MIN_DAILYSEARCH_FREQUENCY: |
|
|
if DAILYSEARCH_FREQUENCY < MIN_DAILYSEARCH_FREQUENCY: |
|
|
DAILYSEARCH_FREQUENCY = MIN_DAILYSEARCH_FREQUENCY |
|
|
DAILYSEARCH_FREQUENCY = MIN_DAILYSEARCH_FREQUENCY |
|
|
|
|
|
|
|
@ -1002,6 +1003,9 @@ def initialize(consoleLogging=True): |
|
|
if hasattr(curTorrentProvider, 'password'): |
|
|
if hasattr(curTorrentProvider, 'password'): |
|
|
curTorrentProvider.password = check_setting_str(CFG, curTorrentProvider.getID().upper(), |
|
|
curTorrentProvider.password = check_setting_str(CFG, curTorrentProvider.getID().upper(), |
|
|
curTorrentProvider.getID() + '_password', '') |
|
|
curTorrentProvider.getID() + '_password', '') |
|
|
|
|
|
if hasattr(curTorrentProvider, 'passkey'): |
|
|
|
|
|
curTorrentProvider.passkey = check_setting_str(CFG, curTorrentProvider.getID().upper(), |
|
|
|
|
|
curTorrentProvider.getID() + '_passkey', '') |
|
|
if hasattr(curTorrentProvider, 'proxy'): |
|
|
if hasattr(curTorrentProvider, 'proxy'): |
|
|
curTorrentProvider.proxy.enabled = bool(check_setting_int(CFG, curTorrentProvider.getID().upper(), |
|
|
curTorrentProvider.proxy.enabled = bool(check_setting_int(CFG, curTorrentProvider.getID().upper(), |
|
|
curTorrentProvider.getID() + '_proxy', 0)) |
|
|
curTorrentProvider.getID() + '_proxy', 0)) |
|
@ -1395,6 +1399,9 @@ def save_config(): |
|
|
if hasattr(curTorrentProvider, 'password'): |
|
|
if hasattr(curTorrentProvider, 'password'): |
|
|
new_config[curTorrentProvider.getID().upper()][curTorrentProvider.getID() + '_password'] = helpers.encrypt( |
|
|
new_config[curTorrentProvider.getID().upper()][curTorrentProvider.getID() + '_password'] = helpers.encrypt( |
|
|
curTorrentProvider.password, ENCRYPTION_VERSION) |
|
|
curTorrentProvider.password, ENCRYPTION_VERSION) |
|
|
|
|
|
if hasattr(curTorrentProvider, 'passkey'): |
|
|
|
|
|
new_config[curTorrentProvider.getID().upper()][ |
|
|
|
|
|
curTorrentProvider.getID() + '_passkey'] = curTorrentProvider.passkey |
|
|
if hasattr(curTorrentProvider, 'confirmed'): |
|
|
if hasattr(curTorrentProvider, 'confirmed'): |
|
|
new_config[curTorrentProvider.getID().upper()][curTorrentProvider.getID() + '_confirmed'] = int( |
|
|
new_config[curTorrentProvider.getID().upper()][curTorrentProvider.getID() + '_confirmed'] = int( |
|
|
curTorrentProvider.confirmed) |
|
|
curTorrentProvider.confirmed) |
|
|