From 1ff0e7588fd116aecc49eae8d876e8e0db44c977 Mon Sep 17 00:00:00 2001 From: coolbombom Date: Fri, 4 Nov 2011 17:57:40 +1300 Subject: [PATCH] Update headphones/webserve.py --- headphones/webserve.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/headphones/webserve.py b/headphones/webserve.py index 1feac791..bbe6196d 100644 --- a/headphones/webserve.py +++ b/headphones/webserve.py @@ -140,9 +140,9 @@ class WebInterface(object): newValueDict = {'Status': newaction} myDB.upsert("albums", newValueDict, controlValueDict) if action == 'Wanted': - searcher.searchNZB(mbid, new=False) + searcher.searchforalbum(mbid, new=False) if action == 'WantedNew': - searcher.searchNZB(mbid, new=True) + searcher.searchforalbum(mbid, new=True) if ArtistID: raise cherrypy.HTTPRedirect("artistPage?ArtistID=%s" % ArtistID) else: @@ -161,7 +161,7 @@ class WebInterface(object): controlValueDict = {'AlbumID': AlbumID} newValueDict = {'Status': 'Wanted'} myDB.upsert("albums", newValueDict, controlValueDict) - searcher.searchNZB(AlbumID, new) + searcher.searchforalbum(AlbumID, new) if ArtistID: raise cherrypy.HTTPRedirect("artistPage?ArtistID=%s" % ArtistID) else: @@ -271,7 +271,7 @@ class WebInterface(object): def forceSearch(self): from headphones import searcher - threading.Thread(target=searcher.searchNZB).start() + threading.Thread(target=searcher.searchforalbum).start() time.sleep(5) raise cherrypy.HTTPRedirect("home") forceSearch.exposed = True