mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-17 14:55:07 -05:00
Merge pull request #774 from adam111316/fix_provider_settings
Fix for daily/backlog checkbox values not saving correctly on providers
This commit is contained in:
commit
1c4d7bf15c
@ -2196,21 +2196,21 @@ class ConfigProviders(MainHandler):
|
|||||||
curTorrentProvider.search_fallback = config.checkbox_to_value(
|
curTorrentProvider.search_fallback = config.checkbox_to_value(
|
||||||
kwargs[curTorrentProvider.getID() + '_search_fallback'])
|
kwargs[curTorrentProvider.getID() + '_search_fallback'])
|
||||||
except:
|
except:
|
||||||
curTorrentProvider.search_fallback = 0
|
curTorrentProvider.search_fallback = 0 # these exceptions are catching unselected checkboxes
|
||||||
|
|
||||||
if hasattr(curTorrentProvider, 'enable_daily'):
|
if hasattr(curTorrentProvider, 'enable_daily'):
|
||||||
try:
|
try:
|
||||||
curTorrentProvider.enable_daily = config.checkbox_to_value(
|
curTorrentProvider.enable_daily = config.checkbox_to_value(
|
||||||
kwargs[curTorrentProvider.getID() + '_enable_daily'])
|
kwargs[curTorrentProvider.getID() + '_enable_daily'])
|
||||||
except:
|
except:
|
||||||
curTorrentProvider.enable_daily = 1
|
curTorrentProvider.enable_daily = 0 # these exceptions are actually catching unselected checkboxes
|
||||||
|
|
||||||
if hasattr(curTorrentProvider, 'enable_backlog'):
|
if hasattr(curTorrentProvider, 'enable_backlog'):
|
||||||
try:
|
try:
|
||||||
curTorrentProvider.enable_backlog = config.checkbox_to_value(
|
curTorrentProvider.enable_backlog = config.checkbox_to_value(
|
||||||
kwargs[curTorrentProvider.getID() + '_enable_backlog'])
|
kwargs[curTorrentProvider.getID() + '_enable_backlog'])
|
||||||
except:
|
except:
|
||||||
curTorrentProvider.enable_backlog = 1
|
curTorrentProvider.enable_backlog = 0 # these exceptions are actually catching unselected checkboxes
|
||||||
|
|
||||||
for curNzbProvider in [curProvider for curProvider in sickbeard.providers.sortedProviderList() if
|
for curNzbProvider in [curProvider for curProvider in sickbeard.providers.sortedProviderList() if
|
||||||
curProvider.providerType == sickbeard.GenericProvider.NZB]:
|
curProvider.providerType == sickbeard.GenericProvider.NZB]:
|
||||||
@ -2238,21 +2238,21 @@ class ConfigProviders(MainHandler):
|
|||||||
curNzbProvider.search_fallback = config.checkbox_to_value(
|
curNzbProvider.search_fallback = config.checkbox_to_value(
|
||||||
kwargs[curNzbProvider.getID() + '_search_fallback'])
|
kwargs[curNzbProvider.getID() + '_search_fallback'])
|
||||||
except:
|
except:
|
||||||
curNzbProvider.search_fallback = 0
|
curNzbProvider.search_fallback = 0 # these exceptions are actually catching unselected checkboxes
|
||||||
|
|
||||||
if hasattr(curNzbProvider, 'enable_daily'):
|
if hasattr(curNzbProvider, 'enable_daily'):
|
||||||
try:
|
try:
|
||||||
curNzbProvider.enable_daily = config.checkbox_to_value(
|
curNzbProvider.enable_daily = config.checkbox_to_value(
|
||||||
kwargs[curNzbProvider.getID() + '_enable_daily'])
|
kwargs[curNzbProvider.getID() + '_enable_daily'])
|
||||||
except:
|
except:
|
||||||
curNzbProvider.enable_daily = 1
|
curNzbProvider.enable_daily = 0 # these exceptions are actually catching unselected checkboxes
|
||||||
|
|
||||||
if hasattr(curNzbProvider, 'enable_backlog'):
|
if hasattr(curNzbProvider, 'enable_backlog'):
|
||||||
try:
|
try:
|
||||||
curNzbProvider.enable_backlog = config.checkbox_to_value(
|
curNzbProvider.enable_backlog = config.checkbox_to_value(
|
||||||
kwargs[curNzbProvider.getID() + '_enable_backlog'])
|
kwargs[curNzbProvider.getID() + '_enable_backlog'])
|
||||||
except:
|
except:
|
||||||
curNzbProvider.enable_backlog = 1
|
curNzbProvider.enable_backlog = 0 # these exceptions are actually catching unselected checkboxes
|
||||||
|
|
||||||
sickbeard.NEWZNAB_DATA = '!!!'.join([x.configStr() for x in sickbeard.newznabProviderList])
|
sickbeard.NEWZNAB_DATA = '!!!'.join([x.configStr() for x in sickbeard.newznabProviderList])
|
||||||
sickbeard.PROVIDER_ORDER = provider_list
|
sickbeard.PROVIDER_ORDER = provider_list
|
||||||
|
Loading…
Reference in New Issue
Block a user