|
@@ -9,7 +9,7 @@ try:
|
|
|
def play_spool(obj):
|
|
|
f = obj["file"]
|
|
|
if os.path.exists(f):
|
|
|
- subprocess.Popen(["mpv", "--no-terminal", f]).wait()
|
|
|
+ subprocess.Popen(["mpg123", "-q", f]).wait()
|
|
|
|
|
|
def play(sound):
|
|
|
play_spool.spool(file=sound.get_fullpath())
|
|
@@ -21,4 +21,4 @@ except ImportError:
|
|
|
print("[play] Please use uwsgi. Playing in background.")
|
|
|
f = sound.get_fullpath()
|
|
|
if os.path.exists(f):
|
|
|
- subprocess.Popen(["mpv", "--no-terminal", f])
|
|
|
+ subprocess.Popen(["mpg123", "-q", f])
|