Jetzt Gehts "3. datei fix"
This commit is contained in:
parent
6f1ebf690d
commit
69d08784d8
2 changed files with 4 additions and 3 deletions
2
Wesc.sh
Normal file
2
Wesc.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
flask run --debug
|
||||||
3
app.py
3
app.py
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue