mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Maybe Sports Illustrated needs Accept-Language
This commit is contained in:
parent
2a6e7ea82d
commit
23bc346ce8
@ -32,6 +32,11 @@ class SI(BasicNewsRecipe):
|
||||
dict(name='meta'),
|
||||
]
|
||||
|
||||
def get_browser(self, *args, **kwargs):
|
||||
br = BasicNewsRecipe.get_browser(self, *args, **kwargs)
|
||||
br.addheaders += [('Accept-Language', 'en')]
|
||||
return br
|
||||
|
||||
def preprocess_html(self, soup, *a):
|
||||
for tag in soup.findAll(attrs={'data-src': True}):
|
||||
tag.name = 'img'
|
||||
|
Loading…
x
Reference in New Issue
Block a user