zs

Zeitungsschau rss to email converter
git clone git://r-36.net/zs
Log | Files | Refs | LICENSE

commit 871c61d31c9fd59c5f94dd6fe3ea0f7c7f10f62c
parent 34689edc7b18ae0300f2aaeca7491a69523a378b
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sun,  9 Mar 2014 20:56:28 +0100

More cleaner debug.

Diffstat:
feedemail.py | 2+-
zs.py | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/feedemail.py b/feedemail.py @@ -28,7 +28,7 @@ def send(feed, to, smtphost="localhost", smtpport=None, ssl="False", \ for article in articles: if "text" in article: - text = html2text(article["text"]) + text = "%s\n" % (html2text(article["text"])) else: text = "" diff --git a/zs.py b/zs.py @@ -21,10 +21,10 @@ def run(db, selfeed=None): for feeduri in feeduris: curfeed = feed.fetch(feeduri) - print("curfeed: %s" % (curfeed)) + print("curfeed: %d" % (len(curfeed["articles"]))) db.mergefeed(feeduri, curfeed) ufeed = db.unreadarticles(feeduri) - print("unread: %s" % (ufeed)) + print("unread: %d" % (len(ufeed["articles"]))) if "toemail" in ufeed: toemail = ufeed["toemail"]