mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1826 (sending to SD card on reader)
This commit is contained in:
parent
ded6c02dba
commit
759c17bec3
@ -186,7 +186,10 @@ class BookList(_BookList):
|
|||||||
node = self.document.createElement(self.prefix + "text")
|
node = self.document.createElement(self.prefix + "text")
|
||||||
mime = MIME_MAP[name.rpartition('.')[-1].lower()]
|
mime = MIME_MAP[name.rpartition('.')[-1].lower()]
|
||||||
cid = self.max_id()+1
|
cid = self.max_id()+1
|
||||||
sourceid = str(self[0].sourceid) if len(self) else "1"
|
try:
|
||||||
|
sourceid = str(self[0].sourceid) if len(self) else '1'
|
||||||
|
except:
|
||||||
|
sourceid = '1'
|
||||||
attrs = {
|
attrs = {
|
||||||
"title" : info["title"],
|
"title" : info["title"],
|
||||||
'titleSorter' : sortable_title(info['title']),
|
'titleSorter' : sortable_title(info['title']),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user