diff options
author | cedricbonhomme <devnull@localhost> | 2010-09-03 13:53:02 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-09-03 13:53:02 +0200 |
commit | 56c2582fe9eaca4e1a7515269869cc0f5a041ca8 (patch) | |
tree | daae08d10ced42bdd6a08c2d452cf2a03d1dd84a | |
parent | Added detection of URL errors. (diff) | |
download | newspipe-56c2582fe9eaca4e1a7515269869cc0f5a041ca8.tar.gz newspipe-56c2582fe9eaca4e1a7515269869cc0f5a041ca8.tar.bz2 newspipe-56c2582fe9eaca4e1a7515269869cc0f5a041ca8.zip |
Improvements of history pages.
-rwxr-xr-x | pyAggr3g470r.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index b9b8f9c1..a99d16ed 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -598,6 +598,7 @@ class Root: timeline = Counter() for rss_feed_id in self.feeds.keys(): + new_feed_section = True for article in self.articles[rss_feed_id]: if querystring == "all": @@ -623,6 +624,18 @@ class Root: else: like = "" + 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')) + html += article[1].encode('utf-8') + \ " - " + not_read_begin + \ """<a href="/description/%s:%s" rel="noreferrer" target="_blank">%s</a>""" % \ |