summaryrefslogtreecommitdiff
path: root/libs/music/player.d/cgi-bin
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2021-12-08 03:38:10 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2021-12-08 03:38:10 +0800
commit154b63534baf812bf9a5234774daf09952556285 (patch)
tree7099ab6ef22827924f6bf129be1f84f50ff27050 /libs/music/player.d/cgi-bin
parent9542720148b9b1526763262bea0752a0e21f7cb7 (diff)
downloadweb-154b63534baf812bf9a5234774daf09952556285.tar.xz
TSOP 2.7.1: help & format switching.
Also finally removed all reminiscence of the legacy player.
Diffstat (limited to 'libs/music/player.d/cgi-bin')
-rwxr-xr-xlibs/music/player.d/cgi-bin/m3u8.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/music/player.d/cgi-bin/m3u8.cgi b/libs/music/player.d/cgi-bin/m3u8.cgi
index 7e14493..506ce0e 100755
--- a/libs/music/player.d/cgi-bin/m3u8.cgi
+++ b/libs/music/player.d/cgi-bin/m3u8.cgi
@@ -18,7 +18,7 @@ print('Content-type: audio/mpegurl',end='\r\n')
print(end='\r\n')
f.readline()
try:
- fmt=d['type'][0] if d['type'][0] in ['ogg','wav','flac'] else 'ogg'
+ fmt=d['type'][0] if d['type'][0] in ['ogg','flac','opus','m4a'] else 'ogg'
except KeyError:
fmt='ogg'
for line in f: