From 56c38afd15122c2654a4f401af91fa384e939a77 Mon Sep 17 00:00:00 2001 From: Timothy Legge Date: Sun, 2 Jan 2011 21:15:48 -0400 Subject: [PATCH] Bug 8124 - Add support to transfer txt, cbr and cbz files to the device --- src/calibre/devices/kobo/driver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index 51ceb94a99..c5e8f5ca0f 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -33,7 +33,7 @@ class KOBO(USBMS): booklist_class = CollectionsBookList # Ordered list of supported formats - FORMATS = ['epub', 'pdf'] + FORMATS = ['epub', 'pdf', 'txt', 'cbz', 'cbr'] CAN_SET_METADATA = ['collections'] VENDOR_ID = [0x2237] @@ -409,7 +409,7 @@ class KOBO(USBMS): else: ContentType = 901 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 def path_from_contentid(self, ContentID, ContentType, MimeType, oncard):