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:
Bryan Schumaker 2011-06-24 23:21:44 -04:00
parent 9be5b10112
commit 4b852eff28
1 changed files with 2 additions and 2 deletions

View File

@ -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