1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Fixed API bug and added track certifications

This commit is contained in:
Krateng
2019-06-13 11:37:42 +02:00
parent 060cb7ea23
commit 746475390f
3 changed files with 31 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ def instructions(keys):
imgurl = getTrackImage(track["artists"],track["title"],fast=True)
pushresources = [{"file":imgurl,"type":"image"}] if imgurl.startswith("/") else []
data = database.trackInfo(track["artists"],track["title"])
data = database.trackInfo(track)
scrobblesnum = str(data["scrobbles"])
pos = "#" + str(data["position"])