mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #8920 ('De Standaard' (Dutch (BE) download does not work)
This commit is contained in:
parent
03388d3843
commit
02bfb2e0ef
BIN
resources/images/news/de_standaard.png
Normal file
BIN
resources/images/news/de_standaard.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 834 B |
@ -1,5 +1,5 @@
|
|||||||
__license__ = 'GPL v3'
|
__license__ = 'GPL v3'
|
||||||
__copyright__ = '2008, Darko Miletic <darko.miletic at gmail.com>'
|
__copyright__ = '2008-2011, Darko Miletic <darko.miletic at gmail.com>'
|
||||||
'''
|
'''
|
||||||
standaard.be
|
standaard.be
|
||||||
'''
|
'''
|
||||||
@ -9,15 +9,16 @@ from calibre.web.feeds.news import BasicNewsRecipe
|
|||||||
class DeStandaard(BasicNewsRecipe):
|
class DeStandaard(BasicNewsRecipe):
|
||||||
title = u'De Standaard'
|
title = u'De Standaard'
|
||||||
__author__ = u'Darko Miletic'
|
__author__ = u'Darko Miletic'
|
||||||
language = 'nl_BE'
|
language = 'nl_BE'
|
||||||
|
|
||||||
description = u'News from Belgium in Dutch'
|
description = u'News from Belgium in Dutch'
|
||||||
oldest_article = 7
|
oldest_article = 7
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
encoding = 'utf-8'
|
encoding = 'utf-8'
|
||||||
|
masthead_url = 'http://www.standaard.be/extra/css/images/masthead/logo_340x45.png'
|
||||||
|
publication_type = 'newspaper'
|
||||||
|
|
||||||
keep_only_tags = [dict(name='div' , attrs={'id':['intro','continued']})]
|
keep_only_tags = [dict(name='div' , attrs={'id':['intro','continued']})]
|
||||||
|
|
||||||
feeds = [(u'De Standaard Online', u'http://feeds.feedburner.com/dso-front')]
|
feeds = [(u'De Standaard Online', u'http://feeds.feedburner.com/dso-front')]
|
||||||
@ -27,4 +28,4 @@ class DeStandaard(BasicNewsRecipe):
|
|||||||
return article.get('guid', None)
|
return article.get('guid', None)
|
||||||
|
|
||||||
def print_version(self, url):
|
def print_version(self, url):
|
||||||
return url.replace('/Detail.aspx?','/PrintArtikel.aspx?')
|
return url.replace('/artikel/detail.aspx?','/Artikel/PrintArtikel.aspx?')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user