mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #852209 (Updated Metro news NL)
This commit is contained in:
parent
c894d504a3
commit
7b8b66cc89
@ -2,7 +2,6 @@ from calibre.web.feeds.news import BasicNewsRecipe
|
|||||||
|
|
||||||
class AdvancedUserRecipe1306097511(BasicNewsRecipe):
|
class AdvancedUserRecipe1306097511(BasicNewsRecipe):
|
||||||
title = u'Metro Nieuws NL'
|
title = u'Metro Nieuws NL'
|
||||||
description = u'Metro Nieuws - NL'
|
|
||||||
# Version 1.2, updated cover image to match the changed website.
|
# Version 1.2, updated cover image to match the changed website.
|
||||||
# added info date on title
|
# added info date on title
|
||||||
oldest_article = 2
|
oldest_article = 2
|
||||||
@ -11,14 +10,14 @@ class AdvancedUserRecipe1306097511(BasicNewsRecipe):
|
|||||||
description = u'Metro Nederland'
|
description = u'Metro Nederland'
|
||||||
language = u'nl'
|
language = u'nl'
|
||||||
simultaneous_downloads = 5
|
simultaneous_downloads = 5
|
||||||
delay = 1
|
#delay = 1
|
||||||
# timefmt = ' [%A, %d %B, %Y]'
|
auto_cleanup = True
|
||||||
|
auto_cleanup_keep = '//div[@class="article-image-caption-2column"]|//div[@id="date"]'
|
||||||
timefmt = ' [%A, %d %b %Y]'
|
timefmt = ' [%A, %d %b %Y]'
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
remove_javascript = True
|
remove_javascript = True
|
||||||
remove_empty_feeds = True
|
remove_empty_feeds = True
|
||||||
cover_url = 'http://www.oldreadmetro.com/img/en/metroholland/last/1/small.jpg'
|
cover_url = 'http://www.oldreadmetro.com/img/en/metroholland/last/1/small.jpg'
|
||||||
remove_empty_feeds = True
|
|
||||||
publication_type = 'newspaper'
|
publication_type = 'newspaper'
|
||||||
remove_tags_before = dict(name='div', attrs={'id':'date'})
|
remove_tags_before = dict(name='div', attrs={'id':'date'})
|
||||||
remove_tags_after = dict(name='div', attrs={'id':'column-1-3'})
|
remove_tags_after = dict(name='div', attrs={'id':'column-1-3'})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user