mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-31 02:55:19 -04:00
Use https URLS for web archive
This commit is contained in:
@@ -88,7 +88,7 @@ def wayback_machine_cached_url(url, br=None, log=prints, timeout=60):
|
||||
try:
|
||||
closest = data['archived_snapshots']['closest']
|
||||
if closest['available']:
|
||||
return closest['url']
|
||||
return closest['url'].replace('http:', 'https:')
|
||||
except Exception:
|
||||
pass
|
||||
from pprint import pformat
|
||||
|
||||
Reference in New Issue
Block a user