diff options
author | Chris Xiong <chirs241097@gmail.com> | 2021-12-08 03:38:10 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2021-12-08 03:38:10 +0800 |
commit | 154b63534baf812bf9a5234774daf09952556285 (patch) | |
tree | 7099ab6ef22827924f6bf129be1f84f50ff27050 /libs/music/player.d/cgi-bin | |
parent | 9542720148b9b1526763262bea0752a0e21f7cb7 (diff) | |
download | web-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-x | libs/music/player.d/cgi-bin/m3u8.cgi | 2 |
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: |