From 6476d423716bd841fcecec95c2acbbc49b42f803 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Sat, 14 Mar 2015 00:27:59 -0700 Subject: [PATCH] Return some json when picking a specific download so we can close the dialog box on success/failure --- headphones/webserve.py | 3 +++ 1 file changed, 3 insertions(+) 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):