From 4b00679b2eb99d013c45e0d9983515ff4002f9b0 Mon Sep 17 00:00:00 2001 From: James Cridland Date: Mon, 24 Feb 2020 10:51:40 +1000 Subject: [PATCH] Update ABC News Australia Significant update to restore this recipe to work. Replaced logo to one being used from 2018. Rebuilt the feed list. --- recipes/abc_au.recipe | 61 +++++++++++++++++++++------------------ recipes/icons/abc_au.png | Bin 332 -> 717 bytes 2 files changed, 33 insertions(+), 28 deletions(-) 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';`08lmz(&GyJan{`T|U9o(h%VjqMaUMtGa zPV{wuK6_HXEBodpHC9sRP8^=moRJ!N< z{q3m_wMG&xZpybOiwGu*&nUkoe(%liw&mtRsT;$EXB`!rvvieEv!mWQk2u-lS*MT7 zNcvuOPd;pHwCpO|q?Ul6Y zz|Un)_fCIxZ^@Ht4y>7=Xnku>O^U}q)=a&Nw|I5myj{?I(b(1g^Jdwo-3G6G=NWX( zl;h1hfA*A}{f<^$UdA(1_a;VM%T`?Qj>*$geM9uM4SDwAdRaPgg&ebxsLQ0GOlraR2}S literal 332 zcmV-S0ki&zP) z!AcVV00!XyZF&zoMJLaB6*`nR(L>;fE|F0gmDL92XiAs^Bb-VIQewL1R;E}Xn&dJM zbrd1KYQBQsm(ww)B^_@qNXMR*6)kPaxG`($l67}{(Ujzqf_{6xnKGc)j9-=% z+^}lfS9xK=B}Kmtd*rFd+Flzmq~g1(JXA7j)CViBO16zTP&I4PXCrb~Nm)}-!-D+t z%sX|v#x)GdZDr5x8?fYugc-xu9h&mSHJMOSGwqf^Eq@$(>89&iYF6BnhJtDH>dv}s z$9wxKx?J(mfvOzo)1&E$Ip=koHEB`V8G~NgkYw38y*4FH7xgGgj+I^TKu#>%l8!BF e($Tgmr{XW9*$)Bdt8q^N0000