libsaria: Remove unused playlist functions
I have more generic play_id() and load_id() functions now, so the playlist specific implementations haven't been used in a long time. I don't think I need them anymore.
This commit is contained in:
parent
b56fb6768f
commit
b4eb7c15c5
|
@ -48,23 +48,6 @@ def num_visible():
|
|||
return len(visible)
|
||||
return len(playlist.song_list)
|
||||
|
||||
def get_cur_id():
|
||||
return playlist.song_list[cur_index]
|
||||
|
||||
def load_id(id):
|
||||
global cur_index
|
||||
cur_index = playlist.song_list.index(id)
|
||||
save()
|
||||
path = library.get_attrs(id, "filepath")
|
||||
return source.load_file(path)
|
||||
|
||||
def play_id(id):
|
||||
if load_id(id) == True:
|
||||
print "playing..."
|
||||
libsaria.controls.play()
|
||||
return True
|
||||
return False
|
||||
|
||||
def get_next(cur_id):
|
||||
id = None
|
||||
if libsaria.prefs.get("libsaria.random") == True:
|
||||
|
|
Loading…
Reference in New Issue