mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Use https URLS for web archive
This commit is contained in:
parent
0350e13e87
commit
9c78d6d18b
@ -88,7 +88,7 @@ def wayback_machine_cached_url(url, br=None, log=prints, timeout=60):
|
|||||||
try:
|
try:
|
||||||
closest = data['archived_snapshots']['closest']
|
closest = data['archived_snapshots']['closest']
|
||||||
if closest['available']:
|
if closest['available']:
|
||||||
return closest['url']
|
return closest['url'].replace('http:', 'https:')
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
from pprint import pformat
|
from pprint import pformat
|
||||||
|
Loading…
x
Reference in New Issue
Block a user