Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 16bcba2

Browse files
committed
Added marketplace to status checker
1 parent b6452be commit 16bcba2

File tree

2 files changed

+33
-6
lines changed

2 files changed

+33
-6
lines changed

manager_window.py

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def __init__(self):
2424
self.isApplied = False
2525
self.isBackedUp = False
2626
self.isActive = False
27+
self.isMarketInstalled = False
2728
self.managermode = 0
2829

2930
self.LOCALSPOTIFYVER = ''
@@ -97,6 +98,18 @@ def masterButton(self):
9798
self.iprocess = UpdateSpicetify()
9899
self.iprocess.finished_signal.connect(self.update_finished)
99100
self.iprocess.start()
101+
elif self.managermode == 6:
102+
#install marketplace
103+
self.setCursor(Qt.CursorShape.WaitCursor)
104+
self.bt_master.setEnabled(False)
105+
self.bt_refresh.setEnabled(False)
106+
self.bt_uninstall.setEnabled(False)
107+
self.l_status.setText("Installling Spicetify...")
108+
self.l_versioninfo.setText('⏳Please wait⏳')
109+
self.iprocess = InstallSpicetify()
110+
self.iprocess.finished_signal.connect(self.setup_finished)
111+
self.iprocess.progress_signal.connect(self.installProgress)
112+
self.iprocess.start()
100113

101114
#Update user about progress while installing spicetify
102115
def installProgress(self, action):
@@ -210,6 +223,12 @@ def SystemSoftStatusCheck(self):
210223
self.isActive = False
211224
else:
212225
self.isActive = True
226+
227+
marketpath = os.path.join(os.path.join( os.path.expanduser('~'), 'AppData','Roaming'), 'Spotify', 'Apps', 'xpui', 'spicetify-routes-marketplace.js')
228+
if os.path.exists(marketpath):
229+
self.isMarketInstalled = True
230+
else:
231+
self.isMarketInstalled = False
213232

214233
self.installerUiUpdate()
215234

@@ -229,11 +248,19 @@ def installerUiUpdate(self):
229248
if(self.isActive):
230249

231250
if(self.LOCALSPICETIFYVER == self.LATESTSPICETIFYVER):
232-
self.l_status.setText("🔥 Spotify is spiced up 🔥")
233-
self.l_status.setStyleSheet("color: lime")
234-
self.bt_master.setText("Launch Spotify")
235-
self.l_versioninfo.setText('Version: '+self.LOCALSPICETIFYVER)
236-
self.managermode = 0
251+
252+
if (self.isMarketInstalled):
253+
self.l_status.setText("🔥 Spotify is spiced up 🔥")
254+
self.l_status.setStyleSheet("color: lime")
255+
self.bt_master.setText("Launch Spotify")
256+
self.l_versioninfo.setText('Version: '+self.LOCALSPICETIFYVER)
257+
self.managermode = 0
258+
else:
259+
self.l_status.setText("⚠️ Marketplace is not installed ⚠️")
260+
self.l_status.setStyleSheet("color: yellow")
261+
self.l_versioninfo.setText('Install now to download mods/themes inside Spotify itself')
262+
self.bt_master.setText("Install")
263+
self.managermode = 6
237264
else:
238265
self.l_status.setText("♻️ Update available ♻️")
239266
self.l_status.setStyleSheet("color: yellow")

res/splash.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<cursorShape>CrossCursor</cursorShape>
1515
</property>
1616
<property name="windowTitle">
17-
<string>Spicetify Installer 0.3</string>
17+
<string>Spicetify Installer 0.4 stable</string>
1818
</property>
1919
<property name="windowIcon">
2020
<iconset>

0 commit comments

Comments
 (0)