mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
MTP driver: Ignore the zinio folder by default
This commit is contained in:
parent
14441ff052
commit
598a604853
@ -83,7 +83,7 @@ class MTP_DEVICE(BASE):
|
|||||||
return name in {
|
return name in {
|
||||||
'alarms', 'android', 'dcim', 'movies', 'music', 'notifications',
|
'alarms', 'android', 'dcim', 'movies', 'music', 'notifications',
|
||||||
'pictures', 'ringtones', 'samsung', 'sony', 'htc', 'bluetooth',
|
'pictures', 'ringtones', 'samsung', 'sony', 'htc', 'bluetooth',
|
||||||
'games', 'lost.dir', 'video', 'whatsapp', 'image'}
|
'games', 'lost.dir', 'video', 'whatsapp', 'image', 'com.zinio.mobile.android.reader'}
|
||||||
|
|
||||||
def configure_for_kindle_app(self):
|
def configure_for_kindle_app(self):
|
||||||
proxy = self.prefs
|
proxy = self.prefs
|
||||||
@ -161,7 +161,8 @@ class MTP_DEVICE(BASE):
|
|||||||
self.driveinfo = {}
|
self.driveinfo = {}
|
||||||
for sid, location_code in ((self._main_id, 'main'), (self._carda_id,
|
for sid, location_code in ((self._main_id, 'main'), (self._carda_id,
|
||||||
'A'), (self._cardb_id, 'B')):
|
'A'), (self._cardb_id, 'B')):
|
||||||
if sid is None: continue
|
if sid is None:
|
||||||
|
continue
|
||||||
self._update_drive_info(self.filesystem_cache.storage(sid), location_code)
|
self._update_drive_info(self.filesystem_cache.storage(sid), location_code)
|
||||||
return self.driveinfo
|
return self.driveinfo
|
||||||
|
|
||||||
@ -470,7 +471,8 @@ class MTP_DEVICE(BASE):
|
|||||||
|
|
||||||
def remove_books_from_metadata(self, paths, booklists):
|
def remove_books_from_metadata(self, paths, booklists):
|
||||||
self.report_progress(0, _('Removing books from metadata'))
|
self.report_progress(0, _('Removing books from metadata'))
|
||||||
class NextPath(Exception): pass
|
class NextPath(Exception):
|
||||||
|
pass
|
||||||
|
|
||||||
for i, path in enumerate(paths):
|
for i, path in enumerate(paths):
|
||||||
try:
|
try:
|
||||||
@ -549,3 +551,4 @@ if __name__ == '__main__':
|
|||||||
dev.shutdown()
|
dev.shutdown()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user