From 2417107748241ccbf51f3e87215fa862fab3670c Mon Sep 17 00:00:00 2001 From: Remy Date: Mon, 8 Aug 2011 02:06:35 -0700 Subject: [PATCH] Fixed up some styling on the config page, changed some logging in searcher --- data/interfaces/default/config.html | 1 - headphones/searcher.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/data/interfaces/default/config.html b/data/interfaces/default/config.html index dd8c0589..b6d36986 100644 --- a/data/interfaces/default/config.html +++ b/data/interfaces/default/config.html @@ -136,7 +136,6 @@ -

Newznab API:

diff --git a/headphones/searcher.py b/headphones/searcher.py index 93b711ad..668a7d77 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -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: %s - %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).")