mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #4498 (Upload of books to PRS 600 goes wrong and will not upload tags)
This commit is contained in:
parent
bd467d3295
commit
6c010157b6
@ -187,7 +187,7 @@ class BookList(_BookList):
|
|||||||
self.remove_book(name)
|
self.remove_book(name)
|
||||||
|
|
||||||
node = self.document.createElement(self.prefix + "text")
|
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
|
cid = self.max_id()+1
|
||||||
try:
|
try:
|
||||||
sourceid = str(self[0].sourceid) if len(self) else '1'
|
sourceid = str(self[0].sourceid) if len(self) else '1'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user