0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 21:53:54 +01:00

fix official in toplay

This commit is contained in:
2025-12-14 12:33:47 +01:00
parent 3fbeb044ee
commit 8226d58459

View File

@@ -40,7 +40,7 @@ class Module(ActiveModifier):
TOPLAY.touch()
with open(TOPLAY, "r") as f: songs = [s.strip() for s in f.readlines() if s.strip()]
songs[:] = [f for s in songs for f in glob.glob(s.removeprefix("!")) if os.path.isfile(f)] # expand glob
songs[:] = [('!' if s.startswith('!') else '') + f for s in songs for f in glob.glob(s.removeprefix("!")) if os.path.isfile(f)]
def get_song(pop: bool = True):
nonlocal songs