mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 20:24:49 +02:00
KTouch - Hide the internal help files that don't exist on the device storage
This commit is contained in:
parent
e8b723fb99
commit
cb66ec304d
1 changed files with 3 additions and 1 deletions
|
|
@ -199,7 +199,9 @@ def update_booklist(prefix, path, title, authors, mime, date, ContentType, Image
|
|||
changed = False
|
||||
for i, row in enumerate(cursor):
|
||||
# self.report_progress((i+1) / float(numrows), _('Getting list of books on device...'))
|
||||
|
||||
if row[3].startswith("file:///usr/local/Kobo/help/"):
|
||||
# These are internal to the Kobo device and do not exist
|
||||
continue
|
||||
path = self.path_from_contentid(row[3], row[5], row[4], oncard)
|
||||
mime = mime_type_ext(path_to_ext(path)) if path.find('kepub') == -1 else 'application/epub+zip'
|
||||
# debug_print("mime:", mime)
|
||||
|
|
|
|||
Loading…
Reference in a new issue