diff --git a/headphones/webserve.py b/headphones/webserve.py index a2798878..26b6ac76 100644 --- a/headphones/webserve.py +++ b/headphones/webserve.py @@ -374,6 +374,9 @@ class WebInterface(object): myDB = db.DBConnection() album = myDB.action('SELECT * from albums WHERE AlbumID=?', [AlbumID]).fetchone() searcher.send_to_downloader(data, bestqual, album) + return json.dumps({'result':'success'}) + else: + return json.dumps({'result':'failure'}) @cherrypy.expose def unqueueAlbum(self, AlbumID, ArtistID):