datei() fix
This commit is contained in:
parent
dccbad1d1b
commit
666e79e8ce
2 changed files with 127 additions and 125 deletions
1
app.py
1
app.py
|
|
@ -48,6 +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 === []:
|
||||||
audio = file[0].replace("static/", "")
|
audio = file[0].replace("static/", "")
|
||||||
|
|
||||||
return audio
|
return audio
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ playcolor = "#00ff3c"
|
||||||
loop = true
|
loop = true
|
||||||
|
|
||||||
function onplay(id){
|
function onplay(id){
|
||||||
|
//What is id
|
||||||
id = parseInt(id)
|
id = parseInt(id)
|
||||||
if(id>0){
|
if(id>0){
|
||||||
articles[id-1].style.filter = "grayscale("+(id+1)*20+"%)"
|
articles[id-1].style.filter = "grayscale("+(id+1)*20+"%)"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue