Add :ad mode (as an example)

Not really useful, but shows how to quickly add/remove items from the feed
master
pictuga 2014-06-16 14:07:59 +02:00
parent 850d574424
commit de5b75162c
1 changed files with 7 additions and 0 deletions

View File

@ -610,6 +610,13 @@ def Gather(rss, url, cache, options):
queue.join() queue.join()
cache.save() 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(len(rss.items))
log(time.time() - startTime) log(time.time() - startTime)