Fix getting the contentid for txt files. Should work but currently untested

This commit is contained in:
Timothy Legge 2010-07-09 13:46:57 -03:00
parent 06d2f112f1
commit 664865222e

View File

@ -227,13 +227,13 @@ class KOBO(USBMS):
#print "kobo book"
ContentType = 6
ContentID = self.contentid_from_path(path, ContentType)
if extension == '.pdf' or extension == '.epub':
elif extension == '.pdf' or extension == '.epub':
# print "ePub or pdf"
ContentType = 16
#print "Path: " + path
ContentID = self.contentid_from_path(path, ContentType)
# print "ContentID: " + ContentID
if extension == '.html':
else: # if extension == '.html' or extension == '.txt':
ContentType = 999 # Yet another hack: to get around Kobo changing how ContentID is stored
ContentID = self.contentid_from_path(path, ContentType)