From d3441244812217b68a82dcde83d2d669068bab5c Mon Sep 17 00:00:00 2001 From: David Date: Sat, 1 Dec 2018 22:43:30 +1100 Subject: [PATCH] Fix error when no author on Kobo device And I meant to bump the driver version before. --- src/calibre/devices/kobo/driver.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index 97be54617b..00637470fa 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -78,7 +78,7 @@ class KOBO(USBMS): gui_name = 'Kobo Reader' description = _('Communicate with the Kobo Reader') author = 'Timothy Legge and David Forrester' - version = (2, 4, 0) + version = (2, 5, 0) dbversion = 0 fwversion = (0,0,0) @@ -1684,7 +1684,8 @@ class KOBOTOUCH(KOBO): # print "Normalized FileName: " + path # Collect the Kobo metadata - kobo_metadata = Metadata(title, [a.strip() for a in authors.split("&")]) + authors_list = [a.strip() for a in authors.split("&")] if authors is not None else [_('Unknown')] + kobo_metadata = Metadata(title, authors_list) kobo_metadata.series = series kobo_metadata.series_index = seriesnumber kobo_metadata.comments = Description