mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2024-12-28 02:16:16 +00:00
Fixed queue restoring issues
This commit is contained in:
parent
2c34055195
commit
4947d9f9c0
5
app.py
5
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:
|
||||
|
|
|
@ -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
2
webui
|
@ -1 +1 @@
|
|||
Subproject commit 5f2488846bfc6ff758d1749191fd4746a5126405
|
||||
Subproject commit 6c72c1fb2fd48a3e847c5c7cfbd59fc75f071ae3
|
Loading…
Reference in a new issue