mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-03 18:03:37 +00:00
Fixes issues with settings and newznab providers.
This commit is contained in:
parent
c6b064de23
commit
2a5598ba0f
2 changed files with 2 additions and 3 deletions
|
@ -127,7 +127,7 @@ var show_nzb_providers = #if $sickbeard.USE_NZBS then "true" else "false"#;
|
||||||
|
|
||||||
#if $provider_config_list:
|
#if $provider_config_list:
|
||||||
<select id="editAProvider">
|
<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>
|
<option value="$cur_provider.getID()">$cur_provider.name</option>
|
||||||
#end for
|
#end for
|
||||||
</select>
|
</select>
|
||||||
|
@ -142,7 +142,7 @@ var show_nzb_providers = #if $sickbeard.USE_NZBS then "true" else "false"#;
|
||||||
<!-- start div for editing providers //-->
|
<!-- start div for editing providers //-->
|
||||||
#for $curNewznabProvider in [$curProvider for $curProvider in $sickbeard.newznabProviderList]:
|
#for $curNewznabProvider in [$curProvider for $curProvider in $sickbeard.newznabProviderList]:
|
||||||
<div class="providerDiv" id="${curNewznabProvider.getID()}Div">
|
<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">
|
<div class="field-pair">
|
||||||
<label class="clearfix">
|
<label class="clearfix">
|
||||||
<span class="component-title">URL:</span>
|
<span class="component-title">URL:</span>
|
||||||
|
|
|
@ -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 = newznab.NewznabProvider(name, url, key=key, catIDs=catIDs, search_mode=search_mode, search_fallback=search_fallback)
|
||||||
newProvider.enabled = enabled == '1'
|
newProvider.enabled = enabled == '1'
|
||||||
newProvider.search_fallback = search_fallback == '1'
|
|
||||||
|
|
||||||
return newProvider
|
return newProvider
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue