mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2025-01-16 11:35:14 +00:00
Updated app to work with deemix 1.3.0
This commit is contained in:
parent
b99fe1f888
commit
94728263a8
6
app.py
6
app.py
|
@ -16,7 +16,7 @@ class deemix:
|
||||||
self.configFolder = portable or getConfigFolder()
|
self.configFolder = portable or getConfigFolder()
|
||||||
self.set = Settings(self.configFolder)
|
self.set = Settings(self.configFolder)
|
||||||
self.sp = SpotifyHelper(self.configFolder)
|
self.sp = SpotifyHelper(self.configFolder)
|
||||||
self.qm = QueueManager()
|
self.qm = QueueManager(self.sp)
|
||||||
|
|
||||||
self.chartsList = []
|
self.chartsList = []
|
||||||
self.homeCache = None
|
self.homeCache = None
|
||||||
|
@ -48,7 +48,7 @@ class deemix:
|
||||||
self.qm.loadQueue(self.configFolder, self.set.settings, interface)
|
self.qm.loadQueue(self.configFolder, self.set.settings, interface)
|
||||||
|
|
||||||
def queueRestored(self, dz, interface=None):
|
def queueRestored(self, dz, interface=None):
|
||||||
self.qm.nextItem(dz, self.sp, interface)
|
self.qm.nextItem(dz, interface)
|
||||||
|
|
||||||
def get_charts(self, dz):
|
def get_charts(self, dz):
|
||||||
if len(self.chartsList) == 0:
|
if len(self.chartsList) == 0:
|
||||||
|
@ -140,7 +140,7 @@ class deemix:
|
||||||
def addToQueue(self, dz, url, bitrate=None, interface=None):
|
def addToQueue(self, dz, url, bitrate=None, interface=None):
|
||||||
if ';' in url:
|
if ';' in url:
|
||||||
url = url.split(";")
|
url = url.split(";")
|
||||||
self.qm.addToQueue(dz, self.sp, url, self.set.settings, bitrate, interface)
|
self.qm.addToQueue(dz, url, self.set.settings, bitrate, interface)
|
||||||
|
|
||||||
|
|
||||||
def removeFromQueue(self, uuid, interface=None):
|
def removeFromQueue(self, uuid, interface=None):
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
deemix>=1.2.22
|
deemix>=1.3.0
|
||||||
flask
|
flask
|
||||||
flask-socketio
|
flask-socketio
|
||||||
|
|
Loading…
Reference in a new issue