find attr filepath correctly

The attribute filepath is easier now that I can walk a fs_tree backwards
and get a path back.
This commit is contained in:
Bryan Schumaker 2010-11-11 22:47:53 -05:00
parent 0af81adbcd
commit bcacfafa36
1 changed files with 1 additions and 2 deletions

View File

@ -89,8 +89,7 @@ def get_attrs(id, *attrs):
if attr == "id":
res += [id]
elif attr == "filepath":
cmp = rec.fs.walk_backwards()
res += [libsaria.path.sep.join([""] + cmp)]
res += [rec.fs.walk_path_backwards()]
elif attr == "art":
from libsaria import lastfm
res += [lastfm.get_artwork_id(id)]