mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update kath.net
This commit is contained in:
parent
d416b6440c
commit
9a4cef4b5d
@ -1,20 +1,25 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
# vim:fileencoding=utf-8
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
|
||||||
class AdvancedUserRecipe1295262156(BasicNewsRecipe):
|
class AdvancedUserRecipe1608358960(BasicNewsRecipe):
|
||||||
title = u'kath.net'
|
title = 'kath.net'
|
||||||
__author__ = 'Bobus'
|
__author__ = 'mseliger'
|
||||||
description = u'Katholische Nachrichten'
|
description = u'Katholische Nachrichten'
|
||||||
oldest_article = 7
|
oldest_article = 7
|
||||||
language = 'de'
|
language = 'de'
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 25
|
||||||
|
auto_cleanup = True
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
encoding = 'iso-8859-1'
|
encoding = 'iso-8859-1'
|
||||||
|
|
||||||
feeds = [(u'kath.net', u'https://www.kath.net/2005/xml/index.xml')]
|
feeds = [
|
||||||
|
('kath.net', 'https://www.kath.net/ticker/index.xml'),
|
||||||
|
]
|
||||||
|
|
||||||
def print_version(self, url):
|
def print_version(self, url):
|
||||||
return url + "/print/yes"
|
return url.replace('https://www.kath.net/news/', 'https://www.kath.net/print/')
|
||||||
|
|
||||||
def get_browser(self, *a, **kwargs):
|
def get_browser(self, *a, **kwargs):
|
||||||
kwargs['verify_ssl_certificates'] = False
|
kwargs['verify_ssl_certificates'] = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user