mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
36e996d6f2
commit
474009c1a4
@ -158,6 +158,7 @@ class MTP_DEVICE(BASE):
|
|||||||
def books(self, oncard=None, end_session=True):
|
def books(self, oncard=None, end_session=True):
|
||||||
from calibre.devices.mtp.books import JSONCodec
|
from calibre.devices.mtp.books import JSONCodec
|
||||||
from calibre.devices.mtp.books import BookList, Book
|
from calibre.devices.mtp.books import BookList, Book
|
||||||
|
self.report_progress(0, _('Listing files, this can take a while'))
|
||||||
self.get_driveinfo() # Ensure driveinfo is loaded
|
self.get_driveinfo() # Ensure driveinfo is loaded
|
||||||
sid = {'carda':self._carda_id, 'cardb':self._cardb_id}.get(oncard,
|
sid = {'carda':self._carda_id, 'cardb':self._cardb_id}.get(oncard,
|
||||||
self._main_id)
|
self._main_id)
|
||||||
@ -172,7 +173,7 @@ class MTP_DEVICE(BASE):
|
|||||||
steps = len(all_books) + 2
|
steps = len(all_books) + 2
|
||||||
count = 0
|
count = 0
|
||||||
|
|
||||||
self.report_progress(0, _('Reading metadata from device'))
|
self.report_progress(0, _('Reading ebook metadata'))
|
||||||
# Read the cache if it exists
|
# Read the cache if it exists
|
||||||
storage = self.filesystem_cache.storage(sid)
|
storage = self.filesystem_cache.storage(sid)
|
||||||
cache = storage.find_path((self.METADATA_CACHE,))
|
cache = storage.find_path((self.METADATA_CACHE,))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user