mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-09 12:48:54 -05:00
Hotfix !playlist list
This commit is contained in:
parent
2f46605bf6
commit
85c1b31c82
@ -477,7 +477,10 @@ class Audio:
|
||||
path = "data/audio/playlists"
|
||||
old_playlists = [f[:-4] for f in os.listdir(path) if f.endswith(".txt")]
|
||||
path = os.path.join(path, server)
|
||||
if os.path.exists(path):
|
||||
new_playlists = [f[:-4] for f in os.listdir(path) if f.endswith(".txt")]
|
||||
else:
|
||||
new_playlists = []
|
||||
return list(set(old_playlists + new_playlists))
|
||||
|
||||
def _list_local_playlists(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user