Rework collection saving to work with -dev appending

This commit is contained in:
Bryan Schumaker 2010-11-01 08:24:53 -04:00
parent b408e4b727
commit 5a6b321ffe
2 changed files with 3 additions and 3 deletions

View File

@ -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, "")

View 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):