Return some json when picking a specific download so we can close the dialog box on success/failure

This commit is contained in:
rembo10
2015-03-14 00:27:59 -07:00
parent a48d9006ad
commit 6476d42371

View File

@@ -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):