mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Handle broken salon.com servers
This commit is contained in:
parent
163c11301d
commit
12d7a1a034
@ -23,7 +23,7 @@ class Salon_com(BasicNewsRecipe):
|
||||
remove_empty_feeds = True
|
||||
|
||||
feeds = [
|
||||
('News & Politics', 'http://feeds.salon.com/salon/news'),
|
||||
('News & Politics', 'http://www.salon.com/category/news/feed/rss/'),
|
||||
('War Room', 'http://feeds.feedburner.com/salon/war_room'),
|
||||
('Joan Walsh', 'http://feeds.feedburner.com/Salon_Joan_Walsh'),
|
||||
('Glenn Greenwald', 'http://feeds.feedburner.com/salon/greenwald'),
|
||||
@ -38,6 +38,11 @@ class Salon_com(BasicNewsRecipe):
|
||||
('Books', 'http://feeds.feedburner.com/salon/books')
|
||||
]
|
||||
|
||||
def get_browser(self, *args, **kwargs):
|
||||
br = BasicNewsRecipe.get_browser(self, *args, **kwargs)
|
||||
br.set_handle_gzip(True)
|
||||
return br
|
||||
|
||||
def print_version(self, url):
|
||||
return url + '/print/'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user