diff --git a/recipes/chinadaily.recipe b/recipes/chinadaily.recipe index 9f75085a0d..e1704d6f09 100644 --- a/recipes/chinadaily.recipe +++ b/recipes/chinadaily.recipe @@ -1,5 +1,9 @@ +# -*- mode: python -*- +# -*- coding: utf-8 -*- +# vim:fileencoding=utf-8 + __license__ = 'GPL v3' -__copyright__ = '2010 - 2012, Darko Miletic ' +__copyright__ = '2010 - 2017, Darko Miletic ' ''' www.chinadaily.com.cn ''' @@ -21,7 +25,8 @@ class Pagina12(BasicNewsRecipe): language = 'en_CN' remove_empty_feeds = True publication_type = 'newsportal' - masthead_url = 'http://www.chinadaily.com.cn/15421.files/chinadailylogo_e_20100301.jpg' + auto_cleanup = True + masthead_url = 'http://www.chinadaily.com.cn/98103.files/logo.jpg' extra_css = """ body{font-family: Arial,Helvetica,sans-serif } .titlebox{font-family: "Times New Roman",Times,serif} @@ -29,13 +34,12 @@ class Pagina12(BasicNewsRecipe): """ conversion_options = { - 'comment': description, 'tags': category, 'publisher': publisher, 'language': language + 'comment': description, + 'tags': category, + 'publisher': publisher, + 'language': language } - remove_tags = [dict(name=['object', 'embed', 'iframe', 'table'])] - keep_only_tags = [ - dict(attrs={'class': ['titlebox', 'timebox', 'authorbox', 'cont-ins']})] - feeds = [ (u'China', u'http://www.chinadaily.com.cn/rss/china_rss.xml'), diff --git a/recipes/icons/chinadaily.png b/recipes/icons/chinadaily.png index 56478957ab..030944da82 100644 Binary files a/recipes/icons/chinadaily.png and b/recipes/icons/chinadaily.png differ