Browse Source

Merge branch 'master' of sammserver.com:sammko/roztrojka

Samuel Čavoj 4 years ago
parent
commit
243c8cc182
1 changed files with 2 additions and 2 deletions
  1. 2 2
      roztrojka/player.py

+ 2 - 2
roztrojka/player.py

@@ -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])