From 8226d58459ca4088515bb8abbe388c6100f0e92a Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sun, 14 Dec 2025 12:33:47 +0100 Subject: [PATCH] fix official in toplay --- modules/active_modifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/active_modifier.py b/modules/active_modifier.py index 8989bba..fe5a6db 100644 --- a/modules/active_modifier.py +++ b/modules/active_modifier.py @@ -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