Fix a couple of remaining regressions from two card support

This commit is contained in:
Kovid Goyal 2009-06-06 12:58:14 -07:00
parent 65e78bf1f1
commit c33a1bda71
3 changed files with 4 additions and 4 deletions

View File

@ -48,9 +48,9 @@ class CLI(object):
(self._card_b_prefix and path.startswith(self._card_b_prefix))):
path = self._main_prefix + path[1:]
elif path.startswith('carda:'):
path = path.replace('carda:', self._card_prefix[:-1])
path = path.replace('carda:', self._card_a_prefix[:-1])
elif path.startswith('cardb:'):
path = path.replace('cardb:', self._card_prefix[:-1])
path = path.replace('cardb:', self._card_b_prefix[:-1])
return path
def list(self, path, recurse=False, end_session=True, munge=True):

View File

@ -174,7 +174,8 @@ class Device(DeviceConfig, DevicePlugin):
cbsz = stats.f_frsize * stats.f_bavail
else:
msz = self._windows_space(self._main_prefix)[1]
csz = self._windows_space(self._card_prefix)[1]
casz = self._windows_space(self._card_a_prefix)[1]
cbsz = self._windows_space(self._card_b_prefix)[1]
return (msz, casz, cbsz)

View File

@ -67,7 +67,6 @@ def get_metadata_quick(raw):
mi.book_producer = creator
return mi
def get_metadata_(path, cpath=None):
p = podofo.PDFDoc()
p.open(path)