forked from server/soundboard
Add non-comitted change from deploy (fixes error)
This commit is contained in:
parent
629e63c292
commit
1796523944
@ -154,6 +154,7 @@ def play_random():
|
||||
sounds = [os.fsencode(file).decode() for file in os.listdir(config.path)]
|
||||
random_sound = random.sample(sounds, 1)[0]
|
||||
subprocess.Popen(["omxplayer", os.path.join(config.path, random_sound).encode("utf-8")], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||
return render_template("index.html")
|
||||
|
||||
@app.route("/tags/<tags>")
|
||||
def tags(tags):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user