mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update The Seattle Times
This commit is contained in:
parent
c3ee09d459
commit
508fbc057f
@ -55,9 +55,5 @@ class SeattleTimes(BasicNewsRecipe):
|
||||
u'https://www.seattletimes.com/photo-video/feed/'),
|
||||
]
|
||||
|
||||
def get_browser(self, *a, **kw):
|
||||
# MyClatchy servers dont like the user-agent header, they hang forever
|
||||
# when it is present
|
||||
br = BasicNewsRecipe.get_browser(self, *a, **kw)
|
||||
br.addheaders = [x for x in br.addheaders if x[0].lower() != 'user-agent']
|
||||
return br
|
||||
def get_browser(self):
|
||||
return BasicNewsRecipe.get_browser(self, user_agent='common_words/based')
|
||||
|
Loading…
x
Reference in New Issue
Block a user