Fix #2044659 [Library on Tolino Vision 6 doesn't get listed](https://bugs.launchpad.net/calibre/+bug/2044659)

This commit is contained in:
Kovid Goyal 2023-11-27 15:47:35 +05:30
parent aa48fc63d0
commit a0da32deb5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -100,7 +100,8 @@ class MTP_DEVICE(BASE):
'pictures', 'ringtones', 'samsung', 'sony', 'htc', 'bluetooth', 'fonts', 'system', 'pictures', 'ringtones', 'samsung', 'sony', 'htc', 'bluetooth', 'fonts', 'system',
'games', 'lost.dir', 'video', 'whatsapp', 'image', 'com.zinio.mobile.android.reader'}: 'games', 'lost.dir', 'video', 'whatsapp', 'image', 'com.zinio.mobile.android.reader'}:
return True return True
if lpath[0].startswith('.'): if lpath[0].startswith('.') and lpath[0] != '.tolino':
# apparently the Tolino for some reason uses a hidden folder for its library, sigh.
return True return True
if len(lpath) > 1 and lpath[0] == 'android': if len(lpath) > 1 and lpath[0] == 'android':