Leider Kein plan was ich gemacht habLeider Kein plan was ich gemacht habe

This commit is contained in:
mikka 2026-05-13 15:18:46 +02:00
parent 69d08784d8
commit 587f2546f9
2 changed files with 7 additions and 3 deletions

6
app.py
View file

@ -50,10 +50,14 @@ def datei(id):
file = glob("static/"+id+".*")
if file != []:
audio = file[0].replace("static/", "")
return audio
else:
audio = None
print(audio)
return audio
def kartenGeneriren(song):
id = song["wikiid"]
print(id)
statements = wikiapi(id,"statements")
labels = wikiapi(id,"labels")
song["titel"] = statements.get("P1476",[{"value": {"content":{"text":labels["en"]}}}])[0]["value"]["content"]["text"]