Fixed queue restoring issues

This commit is contained in:
RemixDev 2020-08-16 12:34:04 +02:00
parent 2c34055195
commit 4947d9f9c0
3 changed files with 10 additions and 2 deletions

5
app.py
View file

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

View file

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

2
webui

@ -1 +1 @@
Subproject commit 5f2488846bfc6ff758d1749191fd4746a5126405
Subproject commit 6c72c1fb2fd48a3e847c5c7cfbd59fc75f071ae3