mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Kobo driver: Add TXT,CBZ,CBR to supported formats list. Fix #8124 (Support for TXT/CBZ/CBR formats on Kobo)
This commit is contained in:
commit
6fed7035cd
@ -33,7 +33,7 @@ class KOBO(USBMS):
|
|||||||
booklist_class = CollectionsBookList
|
booklist_class = CollectionsBookList
|
||||||
|
|
||||||
# Ordered list of supported formats
|
# Ordered list of supported formats
|
||||||
FORMATS = ['epub', 'pdf']
|
FORMATS = ['epub', 'pdf', 'txt', 'cbz', 'cbr']
|
||||||
CAN_SET_METADATA = ['collections']
|
CAN_SET_METADATA = ['collections']
|
||||||
|
|
||||||
VENDOR_ID = [0x2237]
|
VENDOR_ID = [0x2237]
|
||||||
@ -409,7 +409,7 @@ class KOBO(USBMS):
|
|||||||
else:
|
else:
|
||||||
ContentType = 901
|
ContentType = 901
|
||||||
else: # if extension == '.html' or extension == '.txt':
|
else: # if extension == '.html' or extension == '.txt':
|
||||||
ContentType = 999 # Yet another hack: to get around Kobo changing how ContentID is stored
|
ContentType = 901 # Yet another hack: to get around Kobo changing how ContentID is stored
|
||||||
return ContentType
|
return ContentType
|
||||||
|
|
||||||
def path_from_contentid(self, ContentID, ContentType, MimeType, oncard):
|
def path_from_contentid(self, ContentID, ContentType, MimeType, oncard):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user