From b21cf64e79d68d7b2e76bc4da2f9effe64302b36 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 20 Nov 2011 20:56:42 +0530 Subject: [PATCH] Fix ABC Australia --- recipes/abc_au.recipe | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/recipes/abc_au.recipe b/recipes/abc_au.recipe index 1330f8e4b5..f08beb4dae 100644 --- a/recipes/abc_au.recipe +++ b/recipes/abc_au.recipe @@ -1,5 +1,5 @@ __license__ = 'GPL v3' -__copyright__ = '2010, Dean Cording' +__copyright__ = '2011, Pat Stapleton ' ''' abc.net.au/news ''' @@ -8,7 +8,7 @@ from calibre.web.feeds.recipes import BasicNewsRecipe class ABCNews(BasicNewsRecipe): title = 'ABC News' - __author__ = 'Dean Cording' + __author__ = 'Pat Stapleton, Dean Cording' description = 'News from Australia' masthead_url = 'http://www.abc.net.au/news/assets/v5/images/common/logo-news.png' cover_url = 'http://www.abc.net.au/news/assets/v5/images/common/logo-news.png' @@ -23,7 +23,9 @@ class ABCNews(BasicNewsRecipe): category = 'News, Australia, World' language = 'en_AU' publication_type = 'newsportal' - preprocess_regexps = [(re.compile(r'', re.DOTALL), lambda m: '')] +# preprocess_regexps = [(re.compile(r'', re.DOTALL), lambda m: '')] +#Remove annoying map links (inline-caption class is also used for some image captions! hence regex to match maps.google) + preprocess_regexps = [(re.compile(r'