Fix #4498 (Upload of books to PRS 600 goes wrong and will not upload tags)

This commit is contained in:
Kovid Goyal 2010-01-09 13:27:30 -07:00
parent bd467d3295
commit 6c010157b6

View File

@ -187,7 +187,7 @@ class BookList(_BookList):
self.remove_book(name)
node = self.document.createElement(self.prefix + "text")
mime = MIME_MAP[name.rpartition('.')[-1].lower()]
mime = MIME_MAP.get(name.rpartition('.')[-1].lower(), MIME_MAP['epub'])
cid = self.max_id()+1
try:
sourceid = str(self[0].sourceid) if len(self) else '1'