Jetzt Gehts "3. datei fix"
This commit is contained in:
parent
6f1ebf690d
commit
69d08784d8
2 changed files with 4 additions and 3 deletions
5
app.py
5
app.py
|
|
@ -48,10 +48,9 @@ def datei(id):
|
|||
if file == []:
|
||||
subprocess.run(["yt-dlp",f"http://youtu.be/{id}","-x","-o",id],cwd="static")
|
||||
file = glob("static/"+id+".*")
|
||||
if file == []:
|
||||
if file != []:
|
||||
audio = file[0].replace("static/", "")
|
||||
|
||||
return audio
|
||||
return audio
|
||||
|
||||
def kartenGeneriren(song):
|
||||
id = song["wikiid"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue