libsaria: Add sources.get_cur_id()

I think a function for finding the current song id will be useful if I
want to remove the old get_attrs() function...
This commit is contained in:
Bryan Schumaker 2011-06-17 20:02:11 -04:00
parent 645b70b33c
commit 2c341085b4
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@ def all_attrs():
res["count"] = attrs.get_count("count")
return res
def get_cur_id():
return cur_id
def filter(text):
visible = library.filter(text)
playlist.set_visible(visible)