mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
e7e3b86573
commit
598f3bd17c
@ -77,12 +77,7 @@ class MTP_DEVICE(BASE):
|
||||
return tuple( list(dinfo) + [self.driveinfo] )
|
||||
|
||||
def card_prefix(self, end_session=True):
|
||||
ans = [None, None]
|
||||
if self._carda_id is not None:
|
||||
ans[0] = self.filesystem_cache.storage(self._carda_id).storage_prefix
|
||||
if self._cardb_id is not None:
|
||||
ans[1] = self.filesystem_cache.storage(self._cardb_id).storage_prefix
|
||||
return tuple(ans)
|
||||
return (self._carda_id, self._cardb_id)
|
||||
|
||||
def set_driveinfo_name(self, location_code, name):
|
||||
sid = {'main':self._main_id, 'A':self._carda_id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user