mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #299
This commit is contained in:
parent
c0ae5b621a
commit
9b9bb3afd8
@ -52,10 +52,12 @@ class PRS505(Device):
|
||||
MAIN_MEMORY_VOLUME_LABEL = 'Sony Reader Main Memory'
|
||||
STORAGE_CARD_VOLUME_LABEL = 'Sony Reader Storage Card'
|
||||
|
||||
OSX_MAIN_NAME = 'Sony PRS-505/UC Media'
|
||||
OSX_MAIN_NAME = 'Sony PRS-505/UC Media'
|
||||
OSX_SD_NAME = 'Sony PRS-505/UC:SD Media'
|
||||
OSX_MS_NAME = 'Sony PRS-505/UC:MS Media'
|
||||
|
||||
CARD_PATH_PREFIX = 'libprs500'
|
||||
|
||||
FDI_TEMPLATE = \
|
||||
'''
|
||||
<device>
|
||||
@ -291,7 +293,8 @@ class PRS505(Device):
|
||||
return bl
|
||||
|
||||
def munge_path(self, path):
|
||||
if path.startswith('/') and not path.startswith(self._main_prefix):
|
||||
if path.startswith('/') and not (path.startswith(self._main_prefix) or \
|
||||
(self._card_prefix and path.startswith(self._card_prefix))):
|
||||
path = self._main_prefix + path[1:]
|
||||
elif path.startswith('card:'):
|
||||
path = path.replace('card:', self._card_prefix[:-1])
|
||||
|
Loading…
x
Reference in New Issue
Block a user