mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 11:32:20 -05:00
[Provider Options tab] Only configure providers that are enabled
I just tested and it's working.
This commit is contained in:
parent
5691847331
commit
1d5c63b794
@ -120,9 +120,9 @@ var show_nzb_providers = #if $sickbeard.USE_NZBS then "true" else "false"#;
|
|||||||
<span class="component-desc">
|
<span class="component-desc">
|
||||||
#set $provider_config_list = []
|
#set $provider_config_list = []
|
||||||
#for $curProvider in $sickbeard.providers.sortedProviderList():
|
#for $curProvider in $sickbeard.providers.sortedProviderList():
|
||||||
#if $curProvider.providerType == $GenericProvider.NZB and not $sickbeard.USE_NZBS:
|
#if $curProvider.providerType == $GenericProvider.NZB and (not $sickbeard.USE_NZBS or not $curProvider.isEnabled()):
|
||||||
#continue
|
#continue
|
||||||
#elif $curProvider.providerType == $GenericProvider.TORRENT and not $sickbeard.USE_TORRENTS:
|
#elif $curProvider.providerType == $GenericProvider.TORRENT and ( not $sickbeard.USE_TORRENTS or not $curProvider.isEnabled()):
|
||||||
#continue
|
#continue
|
||||||
#end if
|
#end if
|
||||||
$provider_config_list.append($curProvider)
|
$provider_config_list.append($curProvider)
|
||||||
|
Loading…
Reference in New Issue
Block a user