1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-10-31 15:35:01 -04:00

Fixes issues with settings and newznab providers.

This commit is contained in:
echel0n 2014-05-19 08:22:18 -07:00
parent c6b064de23
commit 2a5598ba0f
2 changed files with 2 additions and 3 deletions

View File

@ -127,7 +127,7 @@ var show_nzb_providers = #if $sickbeard.USE_NZBS then "true" else "false"#;
#if $provider_config_list:
<select id="editAProvider">
#for $cur_provider in $provider_config_list + [$curProvider for $curProvider in $sickbeard.newznabProviderList if $curProvider.default and $curProvider.needs_auth and $sickbeard.USE_NZBS]:
#for $cur_provider in $provider_config_list + [$curProvider for $curProvider in $sickbeard.newznabProviderList if $sickbeard.USE_NZBS]:
<option value="$cur_provider.getID()">$cur_provider.name</option>
#end for
</select>
@ -142,7 +142,7 @@ var show_nzb_providers = #if $sickbeard.USE_NZBS then "true" else "false"#;
<!-- start div for editing providers //-->
#for $curNewznabProvider in [$curProvider for $curProvider in $sickbeard.newznabProviderList]:
<div class="providerDiv" id="${curNewznabProvider.getID()}Div">
#if $curProvider.default and $curProvider.needs_auth
#if $curNewznabProvider.default and $curNewznabProvider.needs_auth
<div class="field-pair">
<label class="clearfix">
<span class="component-title">URL:</span>

View File

@ -107,7 +107,6 @@ def makeNewznabProvider(configString):
newProvider = newznab.NewznabProvider(name, url, key=key, catIDs=catIDs, search_mode=search_mode, search_fallback=search_fallback)
newProvider.enabled = enabled == '1'
newProvider.search_fallback = search_fallback == '1'
return newProvider