Fix IDG.se

This commit is contained in:
Kovid Goyal 2011-09-18 19:40:19 -06:00
parent cf1632637e
commit 6fee05be5c

View File

@ -4,16 +4,16 @@ from calibre.web.feeds.news import BasicNewsRecipe
class IDGse(BasicNewsRecipe): class IDGse(BasicNewsRecipe):
title = 'IDG' title = 'IDG'
description = 'IDG.se'
language = 'se'
__author__ = 'zapt0' __author__ = 'zapt0'
language = 'sv'
description = 'IDG.se'
oldest_article = 1 oldest_article = 1
max_articles_per_feed = 40 max_articles_per_feed = 256
no_stylesheets = True no_stylesheets = True
encoding = 'ISO-8859-1' encoding = 'ISO-8859-1'
remove_javascript = True remove_javascript = True
feeds = [(u'Senaste nytt',u'http://feeds.idg.se/idg/vzzs')] feeds = [(u'Dagens IDG-nyheter',u'http://feeds.idg.se/idg/ETkj?format=xml')]
def print_version(self,url): def print_version(self,url):
return url + '?articleRenderMode=print&m=print' return url + '?articleRenderMode=print&m=print'
@ -30,4 +30,3 @@ class IDGse(BasicNewsRecipe):
dict(name='div', attrs={'id':['preamble_ad']}), dict(name='div', attrs={'id':['preamble_ad']}),
dict(name='ul', attrs={'class':['share']}) dict(name='ul', attrs={'class':['share']})
] ]