Leider Kein plan was ich gemacht habLeider Kein plan was ich gemacht habe
This commit is contained in:
parent
69d08784d8
commit
587f2546f9
2 changed files with 7 additions and 3 deletions
6
app.py
6
app.py
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue