datei() fix

This commit is contained in:
mikka 2026-05-01 22:07:06 +02:00
parent dccbad1d1b
commit 666e79e8ce
2 changed files with 127 additions and 125 deletions

1
app.py
View file

@ -48,6 +48,7 @@ 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 === []:
audio = file[0].replace("static/", "")
return audio

View file

@ -7,6 +7,7 @@ playcolor = "#00ff3c"
loop = true
function onplay(id){
//What is id
id = parseInt(id)
if(id>0){
articles[id-1].style.filter = "grayscale("+(id+1)*20+"%)"