Fixed up some styling on the config page, changed some logging in searcher

This commit is contained in:
Remy
2011-08-08 02:06:35 -07:00
parent d1f26d59e0
commit 2417107748
2 changed files with 2 additions and 3 deletions
-1
View File
@@ -136,7 +136,6 @@
</td>
<td>
<br>
<h3>
Newznab API:</h3>
+2 -2
View File
@@ -399,7 +399,7 @@ def searchNZB(albumid=None, new=False):
bestqual = nzblist[0]
logger.info(u"Found best result: %s (%s) - %s" % (bestqual[0], bestqual[2], helpers.bytes_to_mb(bestqual[1])))
logger.info(u'Found best result: <a href="%s">%s</a> - %s' % (bestqual[2], bestqual[0], helpers.bytes_to_mb(bestqual[1])))
if bestqual[3] == "newzbin":
#logger.info("Found a newzbin result")
@@ -469,7 +469,7 @@ def searchNZB(albumid=None, new=False):
def verifyresult(title, term):
title = re.sub('[\.\-\/]', ' ', title)
title = re.sub('[\.\-\/\_]', ' ', title)
if not re.search('^' + re.escape(term), title, re.IGNORECASE):
logger.info("Removed from results: " + title + " (artist not at string start).")