This commit is contained in:
Kovid Goyal 2008-03-27 02:27:15 +00:00
parent 91217add8b
commit a80e06fbdb
2 changed files with 10 additions and 2 deletions

View File

@ -36,6 +36,8 @@ Customizing e-book download
.. automember:: BasicNewsRecipe.title
.. automember:: BasicNewsRecipe.description
.. automember:: BasicNewsRecipe.__author__
.. automember:: BasicNewsRecipe.max_articles_per_feed

View File

@ -32,10 +32,16 @@ class BasicNewsRecipe(object):
#: The title to use for the ebook
title = _('Unknown News Source')
#: A couple of lines that describe the content this recipe downloads.
#: This will be used primarily in a GUI that presents a list of recipes.
description = ''
#: The author of this recipe
__author__ = __appname__
#: Maximum number of articles to download from each feed
#: Maximum number of articles to download from each feed. This is primarily
#: useful for feeds that don't have article dates. For most feeds, you should
#: use :attr:`BasicNewsRecipe.oldest_article`
max_articles_per_feed = 100
#: Oldest article to download from this news source. In days.
@ -852,4 +858,4 @@ class AutomaticNewsRecipe(BasicNewsRecipe):
def fetch_embedded_article(self, article, dir, logger, f, a, num_of_feeds):
if self.use_embedded_content:
self.web2disk_options.keep_only_tags = []
return BasicNewsRecipe.fetch_embedded_article(self, article, dir, logger, f, a, num_of_feeds)
return BasicNewsRecipe.fetch_embedded_article(self, article, dir, logger, f, a, num_of_feeds)