mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix a couple of remaining regressions from two card support
This commit is contained in:
parent
65e78bf1f1
commit
c33a1bda71
@ -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):
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user