From 9718a3892c1d3ecbcab1409965ac55ed8ab1b388 Mon Sep 17 00:00:00 2001
From: Chris Xiong
Date: Wed, 24 Apr 2019 15:54:01 +0800
Subject: Don't hardcode.
Also update (the currently invisible) audio gears.
---
libs/music/header.html | 114 ++++++++++++++++++-----------------
libs/music/player.d/cgi-bin/m3u8.cgi | 3 +-
2 files changed, 61 insertions(+), 56 deletions(-)
(limited to 'libs')
diff --git a/libs/music/header.html b/libs/music/header.html
index 8441fce..8498157 100755
--- a/libs/music/header.html
+++ b/libs/music/header.html
@@ -1,55 +1,59 @@
-
-
-
-Litter Rubbish Garbage Trash
-
-
-
-
-
-Permissive licensed unless otherwise stated. Feel free to use.
-Back to the player
-
-
-
-
Music production gears used by me [
show]
-
-
- - Cubase Pro 9.5
- - Cakewalk by BandLab
- - Cakewalk SONAR Platinum Edition, Lifetime Pass on Steam
- - Yamaha PSR-275
- - Z3TA+ 1/2
- - Retrologue 2
- - Halion6, Halion Sonic 3 & HSO
- - Groove Agent 4 & 2
- - Cakewalk TTS-1
- - Rapture Pro
- - Dimension Pro
- - Audio Fx Plugins bundled with Cubase Pro
- - Audio Fx Plugins bundled with SONAR Platinum
- - Edirol Super Quartet & Orchestral
- - Roland Sound Canvas VA
- - FluidR3+GM2 Extensions
- - The Grand 3 & 2
- - True Pianos 1.9
- - Trilian & Omnisphere
- - EZDrummer + Electronic EZX + Claustrophobic EZX
- - MusicLab RealGuitars/RealLPC/RealStrat 3
- - Session Drummer 3
- - Virtual Guitarist
- - VG Electric Edition
-
-
-
-
+
+
+
+Litter Rubbish Garbage Trash
+
+
+
+
+
+Permissive licensed unless otherwise stated. Feel free to use.
+Back to the player
+
+
+
+
Music production gears used by me [
show]
+
+
+ - Cubase Pro 9.5
+ - Cakewalk by BandLab
+ - Cakewalk SONAR Platinum Edition, Lifetime Pass on Steam
+ - Cakewalk Pro Audio 9
+ - Yamaha PSR-275
+ - EDIROL SD-80
+ - Focusrite Scarlett Solo
+ - Z3TA+ 1/2
+ - Retrologue 2
+ - Halion 6, Halion Sonic 3 & HSO
+ - Groove Agent 5 & 2
+ - Cakewalk TTS-1
+ - Rapture Pro
+ - Dimension Pro
+ - Audio Fx Plugins bundled with Cubase Pro
+ - Audio Fx Plugins bundled with SONAR Platinum
+ - EDIROL Super Quartet & Orchestral
+ - Roland Sound Canvas VA
+ - FluidR3+GM2 Extensions
+ - The Grand 3 & 2
+ - True Pianos 1.9
+ - Trilian & Omnisphere
+ - EZDrummer + Electronic EZX + Claustrophobic EZX
+ - MusicLab RealGuitars/RealLPC/RealStrat 3
+ - Session Drummer 3
+ - Kontakt 5, Electr6ity Library
+ - Virtual Guitarist
+ - VG Electric Edition
+
+
+
+
diff --git a/libs/music/player.d/cgi-bin/m3u8.cgi b/libs/music/player.d/cgi-bin/m3u8.cgi
index c90871c..7e14493 100755
--- a/libs/music/player.d/cgi-bin/m3u8.cgi
+++ b/libs/music/player.d/cgi-bin/m3u8.cgi
@@ -1,10 +1,11 @@
#!/usr/bin/python3
import cgi
+import os
import urllib.parse
d=cgi.parse()
try:
plist=d['plist'][0]
- f=open(f'/var/www/html/libs/music/player.d/playlists/{plist}.playlist','r',encoding='UTF-8')
+ f=open(f'{os.environ["DOCUMENT_ROOT"]}/libs/music/player.d/playlists/{plist}.playlist','r',encoding='UTF-8')
except (OSError,KeyError) as e:
print('Status: 400 Bad Request',end='\r\n')
print('Content-type: text/plain',end='\r\n')
--
cgit v1.2.3