Jetzt Gehts "3. datei fix"

This commit is contained in:
mikka 2026-05-02 09:13:15 +02:00
parent 6f1ebf690d
commit 69d08784d8
2 changed files with 4 additions and 3 deletions

2
Wesc.sh Normal file
View file

@ -0,0 +1,2 @@
#!/bin/bash
flask run --debug

3
app.py
View file

@ -48,9 +48,8 @@ def datei(id):
if file == []: if file == []:
subprocess.run(["yt-dlp",f"http://youtu.be/{id}","-x","-o",id],cwd="static") subprocess.run(["yt-dlp",f"http://youtu.be/{id}","-x","-o",id],cwd="static")
file = glob("static/"+id+".*") file = glob("static/"+id+".*")
if file == []: if file != []:
audio = file[0].replace("static/", "") audio = file[0].replace("static/", "")
return audio return audio
def kartenGeneriren(song): def kartenGeneriren(song):