Skip to content

Commit

Permalink
Sigh, old python
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Sep 25, 2024
1 parent 8f67780 commit 035a3fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/calibre/ebooks/metadata/sources/search_engines.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from calibre.utils.lock import ExclusiveFile
from calibre.utils.random_ua import accept_header_for_ua

current_version = (1, 2, 7)
current_version = (1, 2, 8)
minimum_calibre_version = (2, 80, 0)
webcache = {}
webcache_lock = Lock()
Expand Down Expand Up @@ -221,9 +221,9 @@ def resolve_bing_wrapper_page(url, br, log):
raw = br.open_novisit(url).read().decode('utf-8', 'replace')
m = re.search(r'var u = "(.+)"', raw)
if m is None:
log(f'Failed to resolve bing wrapper page for url: {url}')
log('Failed to resolve bing wrapper page for url: ' + url)
return url
log(f'Resolved bing wrapped URL: {url} to {m.group(1)}')
log('Resolved bing wrapped URL: ' + url + ' to ' + m.group(1))
return m.group(1)


Expand Down

0 comments on commit 035a3fc

Please sign in to comment.