IGN:Add description as comments to downloaded news

This commit is contained in:
Kovid Goyal 2009-08-27 15:15:31 -06:00
parent 2533bc65e9
commit a36bfaab26
2 changed files with 7 additions and 0 deletions

View File

@ -351,6 +351,10 @@ def initialize_plugins():
initialize_plugins()
def intialized_plugins():
for plugin in _initialized_plugins:
yield plugin
def option_parser():
parser = OptionParser(usage=_('''\
%prog options

View File

@ -878,6 +878,9 @@ class BasicNewsRecipe(Recipe):
mi.author_sort = __appname__
mi.publication_type = 'periodical:'+self.publication_type
mi.timestamp = datetime.now()
mi.comments = self.description
if not isinstance(mi.comments, unicode):
mi.comments = mi.comments.decode('utf-8', 'replace')
mi.pubdate = datetime.now()
opf_path = os.path.join(dir, 'index.opf')
ncx_path = os.path.join(dir, 'index.ncx')