From c13750458c76b10497659a56caa04ad7112c6e82 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 1 Oct 2020 08:37:45 +0530 Subject: [PATCH] Temporary workaround for zipimport threading bug affecting metadata downloads on windows --- src/calibre/ebooks/metadata/sources/identify.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/calibre/ebooks/metadata/sources/identify.py b/src/calibre/ebooks/metadata/sources/identify.py index 529c3402c2..5a64c84bbd 100644 --- a/src/calibre/ebooks/metadata/sources/identify.py +++ b/src/calibre/ebooks/metadata/sources/identify.py @@ -393,6 +393,10 @@ def identify(log, abort, # {{{ log('The log from individual plugins is below') workers = [Worker(p, kwargs, abort) for p in plugins] + # Ensure Browser is imported to workaround threading bugs in zipimport on + # Windows + from calibre import browser + browser() for w in workers: w.start()