From 23e297144869c9217b392bfcea923cbc976267fc Mon Sep 17 00:00:00 2001 From: coolbombom Date: Fri, 4 Nov 2011 18:22:14 +1300 Subject: [PATCH] Update headphones/searcher.py --- headphones/searcher.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/headphones/searcher.py b/headphones/searcher.py index 91d8cb3c..82dd442b 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -417,7 +417,7 @@ def searchNZB(albumid=None, new=False): break else: logger.info('No more results found for %s' % term) - return + return "none" logger.info(u"Pre-processing result") @@ -448,6 +448,11 @@ def searchNZB(albumid=None, new=False): myDB.action('UPDATE albums SET status = "Snatched" WHERE AlbumID=?', [albums[2]]) myDB.action('INSERT INTO snatched VALUES( ?, ?, ?, ?, DATETIME("NOW", "localtime"), ?, ?)', [albums[2], bestqual[0], bestqual[1], bestqual[2], "Snatched", nzb_folder_name]) + return "found" + else: + return "none" + + def verifyresult(title, artistterm, term):