mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-04 10:23:37 +00:00
Fix for search provider config page errors.
This commit is contained in:
parent
9e365310b6
commit
2d87de0fd8
2 changed files with 8 additions and 12 deletions
|
@ -116,13 +116,12 @@ 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():
|
||||||
#set $cur_provider_obj = $sickbeard.providers.getProviderClass($curProvider.getID())
|
#if $curProvider.providerType == $GenericProvider.NZB and not $sickbeard.USE_NZBS:
|
||||||
#if $cur_provider_obj.providerType == $GenericProvider.NZB and not $sickbeard.USE_NZBS:
|
|
||||||
#continue
|
#continue
|
||||||
#elif $cur_provider_obj.providerType == $GenericProvider.TORRENT and not $sickbeard.USE_TORRENTS:
|
#elif $curProvider.providerType == $GenericProvider.TORRENT and not $sickbeard.USE_TORRENTS:
|
||||||
#continue
|
#continue
|
||||||
#end if
|
#end if
|
||||||
$provider_config_list.append($cur_provider_obj)
|
$provider_config_list.append($curProvider)
|
||||||
#end for
|
#end for
|
||||||
|
|
||||||
#if $provider_config_list:
|
#if $provider_config_list:
|
||||||
|
|
|
@ -94,7 +94,6 @@ class TorrentBytesProvider(generic.TorrentProvider):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if re.search('Username or password incorrect', response.text):
|
if re.search('Username or password incorrect', response.text):
|
||||||
|
|
||||||
logger.log(u'Invalid username or password for ' + self.name + ' Check your settings', logger.ERROR)
|
logger.log(u'Invalid username or password for ' + self.name + ' Check your settings', logger.ERROR)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@ -325,8 +324,6 @@ class TorrentBytesCache(tvcache.TVCache):
|
||||||
if ci is not None:
|
if ci is not None:
|
||||||
cl.append(ci)
|
cl.append(ci)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if cl:
|
if cl:
|
||||||
myDB = self._getDB()
|
myDB = self._getDB()
|
||||||
myDB.mass_action(cl)
|
myDB.mass_action(cl)
|
||||||
|
|
Loading…
Reference in a new issue