mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
make setting of google consent cookie thread safe
This commit is contained in:
parent
7bc0399bda
commit
a02453245c
@ -335,6 +335,7 @@ def google_parse_results(root, raw, log=prints, ignore_uncached=True):
|
|||||||
|
|
||||||
|
|
||||||
def google_specialize_browser(br):
|
def google_specialize_browser(br):
|
||||||
|
with webcache_lock:
|
||||||
if not hasattr(br, 'google_consent_cookie_added'):
|
if not hasattr(br, 'google_consent_cookie_added'):
|
||||||
br.set_simple_cookie('CONSENT', 'YES+', '.google.com', path='/')
|
br.set_simple_cookie('CONSENT', 'YES+', '.google.com', path='/')
|
||||||
br.google_consent_cookie_added = True
|
br.google_consent_cookie_added = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user