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:
Kovid Goyal 2011-01-02 18:58:55 -07:00
commit 6fed7035cd

View File

@ -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):