You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
447 B
Plaintext
24 lines
447 B
Plaintext
8 years ago
|
#!/usr/bin/env python
|
||
|
|
||
|
import cgi, os
|
||
|
import cgitb; cgitb.enable()
|
||
|
import subprocess
|
||
|
|
||
|
f = cgi.FieldStorage()
|
||
|
p = f.getvalue("p", "Bump.mp3")
|
||
|
p = os.path.join("voice", p)
|
||
8 years ago
|
out = subprocess.check_output(["mpv", p], stderr=subprocess.STDOUT)
|
||
8 years ago
|
|
||
8 years ago
|
# print "Location: /index.html"
|
||
8 years ago
|
# print
|
||
|
|
||
|
print "Content-type:text/html; charset=utf-8"
|
||
|
print
|
||
|
print """<html>
|
||
|
<head>
|
||
8 years ago
|
<meta http-equiv="refresh" content="0;url=/index.html" />
|
||
8 years ago
|
</head>
|
||
|
<body>
|
||
|
</body>
|
||
8 years ago
|
</html>"""
|