Fix Salon.com

This commit is contained in:
Kovid Goyal 2011-11-20 08:45:44 +05:30
parent c73b2569a1
commit 43f484f3e7

View File

@ -11,17 +11,16 @@ from calibre.web.feeds.news import BasicNewsRecipe
class Salon_com(BasicNewsRecipe): class Salon_com(BasicNewsRecipe):
title = 'Salon.com' title = 'Salon.com'
__author__ = 'cix3' __author__ = 'Kovid Goyal'
description = 'Salon.com - Breaking news, opinion, politics, entertainment, sports and culture.' description = 'Salon.com - Breaking news, opinion, politics, entertainment, sports and culture.'
timefmt = ' [%b %d, %Y]' timefmt = ' [%b %d, %Y]'
language = 'en' language = 'en'
oldest_article = 7 oldest_article = 7
max_articles_per_feed = 100 max_articles_per_feed = 100
auto_cleanup = True
remove_tags = [dict(name='div', attrs={'class':['ad_content', 'clearfix']}), dict(name='hr'), dict(name='img')] auto_cleanup_keep = '//div[@class="art"]'
remove_empty_feeds = True
remove_tags_before = dict(name='h2')
feeds = [ feeds = [
('News & Politics', 'http://feeds.salon.com/salon/news'), ('News & Politics', 'http://feeds.salon.com/salon/news'),
@ -40,5 +39,5 @@ class Salon_com(BasicNewsRecipe):
] ]
def print_version(self, url): def print_version(self, url):
return url.replace('/index.html', '/print.html') return url + '/print/'