From d6420a743a414ed31b1a2ffc89a9ed0eae2d2c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Mon, 17 Jul 2017 15:33:15 +0200 Subject: [PATCH] Fix umlauts in sound files --- soundboard.py | 2 +- templates/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/soundboard.py b/soundboard.py index ba6d39a..beb27be 100644 --- a/soundboard.py +++ b/soundboard.py @@ -20,7 +20,7 @@ def index(sound=None, text=None, video=None): sounds = sorted(sounds) if sound is not None and sound in sounds: - subprocess.Popen(["omxplayer", os.path.join(config.path, sound)], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + subprocess.Popen(["omxplayer", os.path.join(config.path, sound).encode("utf-8")], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) if text is None: text = request.form.get("text") diff --git a/templates/index.html b/templates/index.html index 56b76ab..9e7b804 100644 --- a/templates/index.html +++ b/templates/index.html @@ -16,7 +16,7 @@
тип
{% for sound in sounds %} - + {% endfor %}