mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Fix #8266 (Problem when connecting with Sony Reader - 'au_map')
This commit is contained in:
commit
c0bc8cd562
@ -98,9 +98,10 @@ class AumSortedConcatenate(object):
|
|||||||
|
|
||||||
def finalize(self):
|
def finalize(self):
|
||||||
keys = self.ans.keys()
|
keys = self.ans.keys()
|
||||||
if len(keys) == 0:
|
l = len(keys)
|
||||||
return None
|
if l == 0:
|
||||||
if len(keys) == 1:
|
return 'Unknown:::Unknown'
|
||||||
|
if l == 1:
|
||||||
return self.ans[keys[0]]
|
return self.ans[keys[0]]
|
||||||
return ':#:'.join([self.ans[v] for v in sorted(keys)])
|
return ':#:'.join([self.ans[v] for v in sorted(keys)])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user