diff --git a/recipes/abc_au.recipe b/recipes/abc_au.recipe index ac21e6d730..c737371820 100644 --- a/recipes/abc_au.recipe +++ b/recipes/abc_au.recipe @@ -6,50 +6,55 @@ abc.net.au/news import re from calibre.web.feeds.recipes import BasicNewsRecipe - class ABCNews(BasicNewsRecipe): title = 'ABC News' - __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' - + __author__ = 'Pat Stapleton, Dean Cording, James Cridland' + description = 'From the Australian Broadcasting Corporation. The ABC is owned and funded by the Australian Government, but is editorially independent.' + masthead_url = 'https://www.abc.net.au/cm/lb/8212706/data/news-logo-2017---desktop-print-data.png' + cover_url = 'https://www.abc.net.au/news/linkableblob/8413676/data/abc-news-og-data.jpg' + cover_margins = (0,20,'#000000') oldest_article = 2 - max_articles_per_feed = 100 - no_stylesheets = False + handle_gzip = True + no_stylesheets = True use_embedded_content = False + scale_news_images_to_device = True encoding = 'utf8' publisher = 'ABC News' - category = 'News, Australia, World' + category = 'Australia,News' language = 'en_AU' - publication_type = 'newsportal' -# 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) + publication_type = 'newspaper' + extra_css = '.byline{font-size:smaller;margin-bottom:10px;}.inline-caption{display:block;font-size:smaller;text-decoration: none;}' preprocess_regexps = [(re.compile( - r'