Add :ad mode (as an example)
Not really useful, but shows how to quickly add/remove items from the feedmaster
parent
850d574424
commit
de5b75162c
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue