revert changes to playmusic

This commit is contained in:
cidoku 2025-06-12 22:58:13 -04:00
parent 7d2ff58f76
commit dbe52c1658

View File

@ -3571,11 +3571,11 @@ class GUI(QtGui.QWidget):
if not mus.endswith(".mp3") and "===MUSIC START===.mp3" in self.musiclist: #vidya workaround
mus += ".mp3"
musl = mus.lower()
musp = urllib.unquote(urlparse(musl).path)[1:]
#musp = urllib.unquote(urlparse(musl).path)[1:]
self.stopMusic()
if exists(AOpath + 'sounds/music/' + musp):
if exists(AOpath + 'sounds/music/' + musl):
self.music = audio.loadhandle(False, AOpath + 'sounds/music/' + musl, 0, 0, BASS_SAMPLE_LOOP)
audio.sethandleattr(self.music, BASS_ATTRIB_VOL, self.musicslider.value() / 100.0)
audio.playhandle(self.music, True)