From e9775a5c548edebfe9fc0828bfaaacf144b65728 Mon Sep 17 00:00:00 2001 From: Hiroshi Miura Date: Tue, 23 Nov 2010 15:24:23 +0900 Subject: [PATCH] recipe: introduce jiji press recipe: add masthead images for japanese news --- resources/recipes/endgadget_ja.recipe | 2 ++ resources/recipes/jijinews.recipe | 24 ++++++++++++++++++++ resources/recipes/nikkei_free.recipe | 2 ++ resources/recipes/nikkei_sub_economy.recipe | 2 ++ resources/recipes/nikkei_sub_industry.recipe | 2 ++ resources/recipes/nikkei_sub_life.recipe | 2 ++ resources/recipes/nikkei_sub_main.recipe | 2 ++ resources/recipes/nikkei_sub_sports.recipe | 2 ++ 8 files changed, 38 insertions(+) create mode 100644 resources/recipes/jijinews.recipe diff --git a/resources/recipes/endgadget_ja.recipe b/resources/recipes/endgadget_ja.recipe index 6e962931df..cf2ed69e94 100644 --- a/resources/recipes/endgadget_ja.recipe +++ b/resources/recipes/endgadget_ja.recipe @@ -10,6 +10,8 @@ from calibre.web.feeds.news import BasicNewsRecipe class EndgadgetJapan(BasicNewsRecipe): title = u'Engadget\u65e5\u672c\u7248' + cover_url = 'http://skins18.wincustomize.com/1/49/149320/29/7578/preview-29-7578.jpg' + masthead_url = 'http://www.blogsmithmedia.com/japanese.engadget.com/media/eng-jp-logo-t.png' oldest_article = 7 max_articles_per_feed = 100 no_stylesheets = True diff --git a/resources/recipes/jijinews.recipe b/resources/recipes/jijinews.recipe new file mode 100644 index 0000000000..55f190726c --- /dev/null +++ b/resources/recipes/jijinews.recipe @@ -0,0 +1,24 @@ +#!/usr/bin/env python + +__license__ = 'GPL v3' +__copyright__ = '2010, Hiroshi Miura ' +''' +www.jiji.com +''' + +class JijiDotCom(BasicNewsRecipe): + title = u'\u6642\u4e8b\u901a\u4fe1' + __author__ = 'Hiroshi Miura' + description = 'World News from Jiji Press' + publisher = 'Jiji Press Ltd.' + category = 'news' + encoding = 'utf-8' + oldest_article = 6 + max_articles_per_feed = 100 + language = 'ja' + cover_url = 'http://www.jiji.com/img/top_header_logo2.gif' + masthead_url = 'http://jen.jiji.com/images/logo_jijipress.gif' + + feeds = [(u'\u30cb\u30e5\u30fc\u30b9', u'http://www.jiji.com/rss/ranking.rdf')] + remove_tags_after = dict(id="ad_google") + diff --git a/resources/recipes/nikkei_free.recipe b/resources/recipes/nikkei_free.recipe index 3dfcee98b0..56aeb9d79d 100644 --- a/resources/recipes/nikkei_free.recipe +++ b/resources/recipes/nikkei_free.recipe @@ -10,6 +10,8 @@ class NikkeiNet(BasicNewsRecipe): title = u'\u65e5\u7d4c\u65b0\u805e\u96fb\u5b50\u7248(Free)' __author__ = 'Hiroshi Miura' description = 'News and current market affairs from Japan' + cover_url = 'http://parts.nikkei.com/parts/ds/images/common/logo_r1.svg' + masthead_url = 'http://parts.nikkei.com/parts/ds/images/common/logo_r1.svg' oldest_article = 2 max_articles_per_feed = 20 language = 'ja' diff --git a/resources/recipes/nikkei_sub_economy.recipe b/resources/recipes/nikkei_sub_economy.recipe index 9de13ca674..8e107d15da 100644 --- a/resources/recipes/nikkei_sub_economy.recipe +++ b/resources/recipes/nikkei_sub_economy.recipe @@ -17,6 +17,8 @@ class NikkeiNet_sub_economy(BasicNewsRecipe): title = u'\u65e5\u7d4c\u65b0\u805e\u96fb\u5b50\u7248(\u7523\u696d)' __author__ = 'Hiroshi Miura' description = 'News and current market affairs from Japan' + cover_url = 'http://parts.nikkei.com/parts/ds/images/common/logo_r1.svg' + masthead_url = 'http://parts.nikkei.com/parts/ds/images/common/logo_r1.svg' needs_subscription = True oldest_article = 2 max_articles_per_feed = 20 diff --git a/resources/recipes/nikkei_sub_industry.recipe b/resources/recipes/nikkei_sub_industry.recipe index c2dc9f82a0..67c2a4aa8b 100644 --- a/resources/recipes/nikkei_sub_industry.recipe +++ b/resources/recipes/nikkei_sub_industry.recipe @@ -17,6 +17,8 @@ class NikkeiNet_sub_industory(BasicNewsRecipe): title = u'\u65e5\u7d4c\u65b0\u805e\u96fb\u5b50\u7248(\u7523\u696d)' __author__ = 'Hiroshi Miura' description = 'News and current market affairs from Japan' + cover_url = 'http://parts.nikkei.com/parts/ds/images/common/logo_r1.svg' + masthead_url = 'http://parts.nikkei.com/parts/ds/images/common/logo_r1.svg' needs_subscription = True oldest_article = 2 max_articles_per_feed = 20 diff --git a/resources/recipes/nikkei_sub_life.recipe b/resources/recipes/nikkei_sub_life.recipe index 6a37e4466a..da16f1694e 100644 --- a/resources/recipes/nikkei_sub_life.recipe +++ b/resources/recipes/nikkei_sub_life.recipe @@ -17,6 +17,8 @@ class NikkeiNet_sub_life(BasicNewsRecipe): title = u'\u65e5\u7d4c\u65b0\u805e\u96fb\u5b50\u7248(\u7523\u696d)' __author__ = 'Hiroshi Miura' description = 'News and current market affairs from Japan' + cover_url = 'http://parts.nikkei.com/parts/ds/images/common/logo_r1.svg' + masthead_url = 'http://parts.nikkei.com/parts/ds/images/common/logo_r1.svg' needs_subscription = True oldest_article = 2 max_articles_per_feed = 20 diff --git a/resources/recipes/nikkei_sub_main.recipe b/resources/recipes/nikkei_sub_main.recipe index 021eeff64a..695569958c 100644 --- a/resources/recipes/nikkei_sub_main.recipe +++ b/resources/recipes/nikkei_sub_main.recipe @@ -17,6 +17,8 @@ class NikkeiNet_sub_main(BasicNewsRecipe): title = u'\u65e5\u7d4c\u65b0\u805e\u96fb\u5b50\u7248(\u7dcf\u5408)' __author__ = 'Hiroshi Miura' description = 'News and current market affairs from Japan' + cover_url = 'http://parts.nikkei.com/parts/ds/images/common/logo_r1.svg' + masthead_url = 'http://parts.nikkei.com/parts/ds/images/common/logo_r1.svg' needs_subscription = True oldest_article = 2 max_articles_per_feed = 20 diff --git a/resources/recipes/nikkei_sub_sports.recipe b/resources/recipes/nikkei_sub_sports.recipe index e48ea17077..84336444df 100644 --- a/resources/recipes/nikkei_sub_sports.recipe +++ b/resources/recipes/nikkei_sub_sports.recipe @@ -17,6 +17,8 @@ class NikkeiNet_sub_sports(BasicNewsRecipe): title = u'\u65e5\u7d4c\u65b0\u805e\u96fb\u5b50\u7248(\u30b9\u30dd\u30fc\u30c4)' __author__ = 'Hiroshi Miura' description = 'News and current market affairs from Japan' + cover_url = 'http://parts.nikkei.com/parts/ds/images/common/logo_r1.svg' + masthead_url = 'http://parts.nikkei.com/parts/ds/images/common/logo_r1.svg' needs_subscription = True oldest_article = 2 max_articles_per_feed = 20