datei fix fix
This commit is contained in:
parent
666e79e8ce
commit
6f1ebf690d
1 changed files with 1 additions and 1 deletions
2
app.py
2
app.py
|
|
@ -48,7 +48,7 @@ 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue