You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-26 13:52:00 +01:00
fix official in toplay
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user