Rework collection saving to work with -dev appending
This commit is contained in:
parent
b408e4b727
commit
5a6b321ffe
|
@ -37,7 +37,7 @@ class Collection:
|
|||
libsaria.data.save(
|
||||
(self.fs_tree, self.tag_tree, self.index, self.records,
|
||||
self.next_record, self.size),
|
||||
self.file, "")
|
||||
self.file, "dl_tree")
|
||||
|
||||
def load(self):
|
||||
objects = libsaria.data.load(self.file, "")
|
||||
|
|
|
@ -26,7 +26,7 @@ def set_badfiles():
|
|||
|
||||
class Library(collection.Collection):
|
||||
def __init__(self):
|
||||
collection.Collection.__init__(self, "library.dl_tree")
|
||||
collection.Collection.__init__(self, "library")
|
||||
|
||||
def scan(self, path):
|
||||
print "Library scanning %s" % path
|
||||
|
@ -74,7 +74,7 @@ class Library(collection.Collection):
|
|||
|
||||
class Playlist(collection.Collection):
|
||||
def __init__(self):
|
||||
collection.Collection.__init__(self, "playlist.dl_tree")
|
||||
collection.Collection.__init__(self, "playlist")
|
||||
self.last_tracks = []
|
||||
|
||||
def next_id(self, last_id):
|
||||
|
|
Loading…
Reference in New Issue