summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlibs/music/player.d/cgi-bin/pcm.cgi4
-rw-r--r--libs/music/player.d/playlists/Converted-Modules.playlist2
2 files changed, 4 insertions, 2 deletions
diff --git a/libs/music/player.d/cgi-bin/pcm.cgi b/libs/music/player.d/cgi-bin/pcm.cgi
index 65aa0a6..e43262f 100755
--- a/libs/music/player.d/cgi-bin/pcm.cgi
+++ b/libs/music/player.d/cgi-bin/pcm.cgi
@@ -1,6 +1,6 @@
#!/usr/bin/python3
import sys,os,cgi,json
-from urllib.parse import quote
+from urllib.parse import quote,unquote
d=cgi.parse(fp=sys.stdin)
print('Status: 200 OK',end='\r\n')
@@ -19,7 +19,7 @@ if 'folder' not in d or d['folder']=='':
ro['result']=rro
print(json.dumps(ro))
else:
- alp=os.environ['DOCUMENT_ROOT']+'/libs/music/player.d/playlists/'+d['folder'][0].strip('/')+'.playlist'
+ alp=os.environ['DOCUMENT_ROOT']+'/libs/music/player.d/playlists/'+unquote(d['folder'][0]).strip('/')+'.playlist'
alblist=list()
with open(alp,mode='r',encoding='utf-8') as f:
for line in f:
diff --git a/libs/music/player.d/playlists/Converted-Modules.playlist b/libs/music/player.d/playlists/Converted-Modules.playlist
index 989eeaa..9af3954 100644
--- a/libs/music/player.d/playlists/Converted-Modules.playlist
+++ b/libs/music/player.d/playlists/Converted-Modules.playlist
@@ -11,4 +11,6 @@ Sphenx - Flutana Variata - MIDI Edition
Sphenx - The Awakening of Evil - MIDI Version
Sphenx - The Last Morning - MIDI Edition
Warder - Carra's Lament - MIDI Edition
+Warder - Moors of Ireland - MIDI Edition
+Warder - Whistler's Bride - MIDI Edition
Warder - Tyhjan Pirtin Valssi - MIDI Edition