From 8876f1279e6e7e8be9d74d6ee797e5b0527521d0 Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Wed, 27 Nov 2024 13:53:00 +0100 Subject: [PATCH] feat: add conditional handling for ARRAY mode in BookGrabber --- src/logic/thread_bookgrabber.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/logic/thread_bookgrabber.py b/src/logic/thread_bookgrabber.py index 695c272..b3b4db0 100644 --- a/src/logic/thread_bookgrabber.py +++ b/src/logic/thread_bookgrabber.py @@ -61,9 +61,12 @@ class BookGrabber(QThread): continue bd = BibTextTransformer(self.mode) - if self.use_exact: - bd = bd.use_signature(entry) - bd = bd.get_data(webdata).return_data() + print(webdata) + if self.mode == "ARRAY": + if self.use_exact: + bd = bd.use_signature(entry) + bd = bd.get_data(webdata).return_data() + print(bd) if bd is None: # bd = BookData continue