diff --git a/app.py b/app.py index 7008837..db08fd7 100644 --- a/app.py +++ b/app.py @@ -137,10 +137,10 @@ class deemix: return dz.search(term, type, nb, start) # Queue functions - def addToQueue(self, dz, url, bitrate=None, interface=None): + def addToQueue(self, dz, url, bitrate=None, interface=None, ack=None): if ';' in url: url = url.split(";") - self.qm.addToQueue(dz, url, self.set.settings, bitrate, interface) + self.qm.addToQueue(dz, url, self.set.settings, bitrate, interface, ack) def removeFromQueue(self, uuid, interface=None): diff --git a/server.py b/server.py index 4fb70ce..35e24eb 100644 --- a/server.py +++ b/server.py @@ -251,7 +251,7 @@ def queueRestored(): @socketio.on('addToQueue') def addToQueue(data): - result = app.addToQueue(session['dz'], data['url'], data['bitrate'], interface=socket_interface) + result = app.addToQueue(session['dz'], data['url'], data['bitrate'], interface=socket_interface, ack=data.get('ack')) if result == "Not logged in": emit('loginNeededToDownload')