1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-11-30 13:38:04 +00:00

Bugfix search with wrong custom column configured

This commit is contained in:
Ozzie Isaacs
2022-07-23 07:23:13 +02:00
parent a72f16fd3a
commit a3f7dc2a5a
5 changed files with 205 additions and 639 deletions

View File

@@ -49,6 +49,8 @@ class scholar(Metadata):
tokens = [quote(t.encode("utf-8")) for t in title_tokens]
query = " ".join(tokens)
try:
scholarly.set_timeout(20)
scholarly.set_retries(2)
scholar_gen = itertools.islice(scholarly.search_pubs(query), 10)
except Exception as e:
log.warning(e)