Workaround for broken ssl certificate served by kath.net

This commit is contained in:
Kovid Goyal 2018-11-04 11:40:42 +05:30
parent cc73789554
commit 3897ade179
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -11,9 +11,13 @@ class AdvancedUserRecipe1295262156(BasicNewsRecipe):
no_stylesheets = True
encoding = 'iso-8859-1'
feeds = [(u'kath.net', u'http://www.kath.net/2005/xml/index.xml')]
feeds = [(u'kath.net', u'https://www.kath.net/2005/xml/index.xml')]
def print_version(self, url):
return url + "/print/yes"
def get_browser(self, *a, **kwargs):
kwargs['verify_ssl_certificates'] = False
return BasicNewsRecipe.get_browser(self, *a, **kwargs)
extra_css = 'td.textb {font-size: medium;}'