FIX:(#478) UnboundLocalError if no Newznab providers selected, FIX:(#478) Refresh Selected Comics on Manage tab gave replace error

This commit is contained in:
evilhero 2013-07-30 14:50:15 -04:00
parent 7e58ac7433
commit 39c2817c35
2 changed files with 2 additions and 1 deletions

View File

@ -719,7 +719,7 @@ def replacetheslash(data):
# os.path.join will pipe in the '\' in windows, which won't resolve
# when viewing through cherrypy - so convert it and viola.
if platform.system() == "Windows":
slashreplaced = replace.data('\\', '/')
slashreplaced = data.replace('\\', '/')
else:
slashreplaced = data
return slashreplaced

View File

@ -227,6 +227,7 @@ def search_init(ComicName, IssueNumber, ComicYear, SeriesYear, IssueDate, IssueI
logger.fdebug("Found via API Alternate Naming.")
break
else:
newznab_host = None
nzbprov = nzbprovider[nzbpr]
if searchmode == 'rss':
if mylar.ENABLE_RSS: