mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-16 06:15:09 -05:00
Fix for migrating to new newznab provider config format
This commit is contained in:
parent
18efdb2370
commit
ae5644ba91
@ -115,12 +115,16 @@ def makeNewznabProvider(configString):
|
|||||||
try:
|
try:
|
||||||
name, url, key, catIDs, enabled, search_mode, search_fallback, enable_daily, enable_backlog = configString.split(
|
name, url, key, catIDs, enabled, search_mode, search_fallback, enable_daily, enable_backlog = configString.split(
|
||||||
'|')
|
'|')
|
||||||
except ValueError, e:
|
except ValueError:
|
||||||
try:
|
try:
|
||||||
name, url, key, catIDs, enabled = configString.split('|')
|
name, url, key, catIDs, enabled, search_mode, search_fallback, enable_backlog = configString.split(
|
||||||
|
'|')
|
||||||
except ValueError:
|
except ValueError:
|
||||||
logger.log(u"Skipping Newznab provider string: '" + configString + "', incorrect format", logger.ERROR)
|
try:
|
||||||
return None
|
name, url, key, catIDs, enabled = configString.split('|')
|
||||||
|
except ValueError:
|
||||||
|
logger.log(u"Skipping Newznab provider string: '" + configString + "', incorrect format", logger.ERROR)
|
||||||
|
return None
|
||||||
|
|
||||||
newznab = sys.modules['sickbeard.providers.newznab']
|
newznab = sys.modules['sickbeard.providers.newznab']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user