mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
8b250188ce
commit
0489816b68
@ -834,10 +834,10 @@ class Amazon(Source):
|
||||
if self._browser is None:
|
||||
self._browser = br = browser(user_agent=random_user_agent(allow_ie=False))
|
||||
br.set_handle_gzip(True)
|
||||
br.addheaders += [
|
||||
('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'),
|
||||
('Upgrade-Insecure-Requests', '1'),
|
||||
]
|
||||
# br.addheaders += [
|
||||
# ('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'),
|
||||
# ('Upgrade-Insecure-Requests', '1'),
|
||||
# ]
|
||||
return self._browser.clone_browser()
|
||||
|
||||
def save_settings(self, *args, **kwargs):
|
||||
|
Loading…
x
Reference in New Issue
Block a user