mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
http -> https
This commit is contained in:
parent
25c0b827c4
commit
69eb9ee126
@ -53,11 +53,12 @@ def get_download_filename(response):
|
||||
|
||||
def download_file(url, cookie_file=None, filename=None, create_browser=None):
|
||||
if url.startswith('//'):
|
||||
url = 'http:' + url
|
||||
url = 'https:' + url
|
||||
try:
|
||||
br = browser() if create_browser is None else create_browser()
|
||||
except NotImplementedError:
|
||||
br = browser()
|
||||
br.set_debug_http(True)
|
||||
if cookie_file:
|
||||
cj = MozillaCookieJar()
|
||||
cj.load(cookie_file)
|
||||
|
Loading…
x
Reference in New Issue
Block a user