From de5b75162c4f378c9cba25ed105ed84bec7f32ab Mon Sep 17 00:00:00 2001 From: pictuga Date: Mon, 16 Jun 2014 14:07:59 +0200 Subject: [PATCH] Add :ad mode (as an example) Not really useful, but shows how to quickly add/remove items from the feed --- morss/morss.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/morss/morss.py b/morss/morss.py index 693a02e..214b7af 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -610,6 +610,13 @@ def Gather(rss, url, cache, options): queue.join() cache.save() + if options.ad: + new = rss.items.append() + new.title = "Are you hungry?" + new.desc = "Eat some Galler chocolate :)" + new.link = "http://www.galler.com/" + new.time = "5 Oct 2013 22:42" + log(len(rss.items)) log(time.time() - startTime)