libsaria: Remove new_source() functions
I have new functions for creating the library, so this (and associated callbacks) are no longer needed.
This commit is contained in:
parent
913ee9f931
commit
d8f47e8d4d
|
@ -33,10 +33,6 @@ on_load_playlist = null_cb
|
|||
def load_playlist():
|
||||
on_load_playlist()
|
||||
|
||||
on_new_source = null_cb
|
||||
def new_source():
|
||||
on_new_source()
|
||||
|
||||
on_library_updated = null_cb
|
||||
def library_updated():
|
||||
on_library_updated()
|
||||
|
|
|
@ -59,13 +59,6 @@ def set_attr(attr, value):
|
|||
cur_source.set_attr(cur_id, attr, value)
|
||||
cur_source.save()
|
||||
|
||||
def new_source(path, bg=True):
|
||||
path = expand(path)
|
||||
if not exists(path):
|
||||
return 0
|
||||
oldlibrary.scan(path)
|
||||
libsaria.callbacks.new_source()
|
||||
|
||||
def make_library(path):
|
||||
path = expand(path)
|
||||
if not exists(path):
|
||||
|
|
Loading…
Reference in New Issue