libsaria: Fix dattr access
dattrs need a song id to search the dictionary. I was passing the name of the requested attribute instead. As a result, dattrs were always returning the default value.
This commit is contained in:
parent
9be5b10112
commit
4b852eff28
|
@ -77,8 +77,8 @@ def all_attrs():
|
|||
file = libsaria.audio.get_cur_file()
|
||||
found = find_all_attrs(file, res)
|
||||
if found != False:
|
||||
res["like"] = attrs.get_like("like")
|
||||
res["count"] = attrs.get_count("count")
|
||||
res["like"] = attrs.get_like(res["id"])
|
||||
res["count"] = attrs.get_count(res["id"])
|
||||
res["art"] = libsaria.path.lastfm.test_artwork(res)
|
||||
return res
|
||||
|
||||
|
|
Loading…
Reference in New Issue