Fix bug that sent full path to metadata instead of lpath. Caused metadata to get incorrectly replaced.

This commit is contained in:
Timothy Legge 2010-08-31 21:04:36 -03:00
parent 026f3d8e31
commit 76867d5da5

View File

@ -316,7 +316,6 @@ class KOBO(USBMS):
lpath = lpath[1:]
#print "path: " + lpath
#book = self.book_class(prefix, lpath, other=info)
lpath = self.normalize_path(prefix + lpath)
book = Book(prefix, lpath, '', '', '', '', '', '', other=info)
if book.size is None:
book.size = os.stat(self.normalize_path(path)).st_size