aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-09-03 20:57:35 +0200
committercedricbonhomme <devnull@localhost>2010-09-03 20:57:35 +0200
commit21d57372aa8e1280054488d8d2fecb48caf25531 (patch)
tree8f3ae052ed868388a4acabc3d9c683b18bebc754
parentImprovements of list_favorites and unread_articles pages. (diff)
downloadnewspipe-21d57372aa8e1280054488d8d2fecb48caf25531.tar.gz
newspipe-21d57372aa8e1280054488d8d2fecb48caf25531.tar.bz2
newspipe-21d57372aa8e1280054488d8d2fecb48caf25531.zip
Release 2.0. Improvement of the research page, history research.
-rwxr-xr-xpyAggr3g470r.py17
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>"
bgstack15