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()