diff --git a/app.py b/app.py index be5ba03..b17f6a4 100644 --- a/app.py +++ b/app.py @@ -36,7 +36,10 @@ class deemix: interface.send("toast", {'msg': "Server is closed."}) def restoreDownloadQueue(self, dz, interface=None): - self.qm.loadQueue(dz, self.sp, self.configFolder, self.set.settings, interface) + self.qm.loadQueue(self.configFolder, self.set.settings, interface) + + def queueRestored(self, dz, interface=None): + self.qm.nextItem(dz, self.sp, interface) def get_charts(self, dz): if len(self.chartsList) == 0: diff --git a/server.py b/server.py index 9d5d3b1..0f87022 100644 --- a/server.py +++ b/server.py @@ -174,6 +174,11 @@ def search(data): emit('search', result) +@socketio.on('queueRestored') +def queueRestored(): + app.queueRestored(session['dz'], socket_interface) + + @socketio.on('addToQueue') def addToQueue(data): result = app.addToQueue(session['dz'], data['url'], data['bitrate'], interface=socket_interface) diff --git a/webui b/webui index 5f24888..6c72c1f 160000 --- a/webui +++ b/webui @@ -1 +1 @@ -Subproject commit 5f2488846bfc6ff758d1749191fd4746a5126405 +Subproject commit 6c72c1fb2fd48a3e847c5c7cfbd59fc75f071ae3