diff options
author | cedricbonhomme <devnull@localhost> | 2010-09-03 20:57:35 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-09-03 20:57:35 +0200 |
commit | 21d57372aa8e1280054488d8d2fecb48caf25531 (patch) | |
tree | 8f3ae052ed868388a4acabc3d9c683b18bebc754 /pyAggr3g470r.py | |
parent | Improvements of list_favorites and unread_articles pages. (diff) | |
download | newspipe-21d57372aa8e1280054488d8d2fecb48caf25531.tar.gz newspipe-21d57372aa8e1280054488d8d2fecb48caf25531.tar.bz2 newspipe-21d57372aa8e1280054488d8d2fecb48caf25531.zip |
Release 2.0. Improvement of the research page, history research.
Diffstat (limited to 'pyAggr3g470r.py')
-rwxr-xr-x | pyAggr3g470r.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 62bca1ff..7a493aaf 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -2,8 +2,8 @@ #-*- coding: utf-8 -*- __author__ = "Cedric Bonhomme" -__version__ = "$Revision: 1.9 $" -__date__ = "$Date: 2010/09/02 $" +__version__ = "$Revision: 2.0 $" +__date__ = "$Date: 2010/09/03 $" __copyright__ = "Copyright (c) 2010 Cedric Bonhomme" __license__ = "GPLv3" @@ -310,11 +310,24 @@ class Root: not_read_end else: for rss_feed_id in self.articles.keys(): + new_feed_section = True for article in self.articles[rss_feed_id]: article_content = utils.clear_string(article[4].encode('utf-8')) if not article_content: utils.clear_string(article[2].encode('utf-8')) if querystring.lower() in article_content.lower(): + if new_feed_section is True: + new_feed_section = False + html += """<h2><a name="%s"><a href="%s" rel="noreferrer" + target="_blank">%s</a></a> + <a href="%s" rel="noreferrer" + target="_blank"><img src="%s" width="28" height="28" /></a></h2>\n""" % \ + (rss_feed_id, \ + self.feeds[rss_feed_id][5].encode('utf-8'), \ + self.feeds[rss_feed_id][3].encode('utf-8'), \ + self.feeds[rss_feed_id][4].encode('utf-8'), \ + self.feeds[rss_feed_id][2].encode('utf-8')) + if article[5] == "0": # not readed articles are in bold not_read_begin = "<b>" |