1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 03:22:22 -05:00

Merge pull request #775 from adam111316/newznab_fix_2

Test #2 to fix daily/backlog checkboxes with custom newznab server
This commit is contained in:
adam111316 2014-09-04 07:53:46 +08:00
commit 84fe52bdf8

View File

@ -2029,19 +2029,19 @@ class ConfigProviders(MainHandler):
newznabProviderDict[cur_id].search_fallback = config.checkbox_to_value( newznabProviderDict[cur_id].search_fallback = config.checkbox_to_value(
kwargs[cur_id + '_search_fallback']) kwargs[cur_id + '_search_fallback'])
except: except:
pass newznabProviderDict[cur_id].search_fallback = 0
try: try:
newznabProviderDict[cur_id].enable_daily = config.checkbox_to_value( newznabProviderDict[cur_id].enable_daily = config.checkbox_to_value(
kwargs[cur_id + '_enable_daily']) kwargs[cur_id + '_enable_daily'])
except: except:
pass newznabProviderDict[cur_id].enable_daily = 0
try: try:
newznabProviderDict[cur_id].enable_backlog = config.checkbox_to_value( newznabProviderDict[cur_id].enable_backlog = config.checkbox_to_value(
kwargs[cur_id + '_enable_backlog']) kwargs[cur_id + '_enable_backlog'])
except: except:
pass newznabProviderDict[cur_id].enable_backlog = 0
else: else:
sickbeard.newznabProviderList.append(newProvider) sickbeard.newznabProviderList.append(newProvider)