From 44361ffc765e4d900e9e9a2239c3a1e7ca3060f6 Mon Sep 17 00:00:00 2001 From: Andreas Erhard Date: Sat, 11 Nov 2017 02:27:17 +0100 Subject: [PATCH] fixed issue in string comparison --- soundboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soundboard.py b/soundboard.py index dfce210..1935abf 100644 --- a/soundboard.py +++ b/soundboard.py @@ -40,7 +40,7 @@ def index(sound=None, text=None, video=None): if video is not None: - if video[-4:] is ".mp3": + if video[-4:] == ".mp3": subprocess.Popen(["omxplayer", video], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) else: url = subprocess.check_output(["youtube-dl", "-g", "-f", "mp4", video]).decode()