mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Fix for search provider config page errors.
This commit is contained in:
parent
9e365310b6
commit
2d87de0fd8
@ -116,13 +116,12 @@ var show_nzb_providers = #if $sickbeard.USE_NZBS then "true" else "false"#;
|
||||
<span class="component-desc">
|
||||
#set $provider_config_list = []
|
||||
#for $curProvider in $sickbeard.providers.sortedProviderList():
|
||||
#set $cur_provider_obj = $sickbeard.providers.getProviderClass($curProvider.getID())
|
||||
#if $cur_provider_obj.providerType == $GenericProvider.NZB and not $sickbeard.USE_NZBS:
|
||||
#if $curProvider.providerType == $GenericProvider.NZB and not $sickbeard.USE_NZBS:
|
||||
#continue
|
||||
#elif $cur_provider_obj.providerType == $GenericProvider.TORRENT and not $sickbeard.USE_TORRENTS:
|
||||
#elif $curProvider.providerType == $GenericProvider.TORRENT and not $sickbeard.USE_TORRENTS:
|
||||
#continue
|
||||
#end if
|
||||
$provider_config_list.append($cur_provider_obj)
|
||||
$provider_config_list.append($curProvider)
|
||||
#end for
|
||||
|
||||
#if $provider_config_list:
|
||||
|
@ -94,7 +94,6 @@ class TorrentBytesProvider(generic.TorrentProvider):
|
||||
return False
|
||||
|
||||
if re.search('Username or password incorrect', response.text):
|
||||
|
||||
logger.log(u'Invalid username or password for ' + self.name + ' Check your settings', logger.ERROR)
|
||||
return False
|
||||
|
||||
@ -325,8 +324,6 @@ class TorrentBytesCache(tvcache.TVCache):
|
||||
if ci is not None:
|
||||
cl.append(ci)
|
||||
|
||||
|
||||
|
||||
if cl:
|
||||
myDB = self._getDB()
|
||||
myDB.mass_action(cl)
|
||||
|
Loading…
Reference in New Issue
Block a user