Fix mixed indentation in Python files

This commit is contained in:
Martin Müller 2017-12-13 15:42:09 +01:00
parent 116ed2adba
commit 86d85f6909
2 changed files with 7 additions and 7 deletions

View File

@ -72,12 +72,12 @@ def index(sound=None, text=None, video=None):
video = request.args.get("video")
if video is not None:
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()
subprocess.Popen(["omxplayer", url.split("\n")[1]])
subprocess.Popen(["omxplayer", "-b", url.split("\n")[0]])
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()
subprocess.Popen(["omxplayer", url.split("\n")[1]])
subprocess.Popen(["omxplayer", "-b", url.split("\n")[0]])
killvideo = request.args.get("killvideo")

View File

@ -5,6 +5,6 @@ sys.path.insert(0, '/var/www/soundboard')
activate_this = '/var/www/soundboard/py/bin/activate_this.py'
with open(activate_this) as file_:
exec(file_.read(), dict(__file__=activate_this))
exec(file_.read(), dict(__file__=activate_this))
from soundboard import app as application