MTP driver: Ignore the zinio folder by default

This commit is contained in:
Kovid Goyal 2013-07-12 17:11:13 +05:30
parent 14441ff052
commit 598a604853

View File

@ -83,7 +83,7 @@ class MTP_DEVICE(BASE):
return name in {
'alarms', 'android', 'dcim', 'movies', 'music', 'notifications',
'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):
proxy = self.prefs
@ -161,7 +161,8 @@ class MTP_DEVICE(BASE):
self.driveinfo = {}
for sid, location_code in ((self._main_id, 'main'), (self._carda_id,
'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)
return self.driveinfo
@ -470,7 +471,8 @@ class MTP_DEVICE(BASE):
def remove_books_from_metadata(self, paths, booklists):
self.report_progress(0, _('Removing books from metadata'))
class NextPath(Exception): pass
class NextPath(Exception):
pass
for i, path in enumerate(paths):
try:
@ -549,3 +551,4 @@ if __name__ == '__main__':
dev.shutdown()