From 7330bfdebb867cf7df1e4bab6ba5525c5f527c9b Mon Sep 17 00:00:00 2001 From: David Date: Thu, 11 Apr 2019 22:22:10 +1000 Subject: [PATCH] Fix typo in BS4 changes for fetching annotations I have only tested the Kobo version, but the Kindle is the same at this point. --- src/calibre/devices/kindle/driver.py | 2 +- src/calibre/devices/kobo/driver.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/devices/kindle/driver.py b/src/calibre/devices/kindle/driver.py index 24f6220e47..f7e88f4ba5 100644 --- a/src/calibre/devices/kindle/driver.py +++ b/src/calibre/devices/kindle/driver.py @@ -258,7 +258,7 @@ class KINDLE(USBMS): typ=user_notes[location]['type'])) for annotation in annotations: - annot = BeautifulSoup('' + annotations + '').find('span') + annot = BeautifulSoup('' + annotation + '').find('span') divTag.insert(dtc, annot) dtc += 1 diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index f31322919d..70af802a59 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -1292,7 +1292,7 @@ class KOBO(USBMS): annotation=user_notes[location]['annotation'])) for annotation in annotations: - annot = BeautifulSoup('' + annotations + '').find('span') + annot = BeautifulSoup('' + annotation + '').find('span') divTag.insert(dtc, annot) dtc += 1