aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlas Oliva <blasoliva@gmail.com>2015-02-09 22:48:28 -0300
committerBlas Oliva <blasoliva@gmail.com>2015-02-09 22:48:28 -0300
commitef5fb88f626c9b115c3c0ce936a77cc4cd0eeca1 (patch)
tree77562bb8b06203bc428cedc0a1373c7d49117e47
parent0d8ae07808d0705e95db4f0c0d8e8cad2b599a9e (diff)
downloadreebot-ef5fb88f626c9b115c3c0ce936a77cc4cd0eeca1.tar.gz
reebot-ef5fb88f626c9b115c3c0ce936a77cc4cd0eeca1.zip
parse custom tags
-rwxr-xr-xreebot.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/reebot.py b/reebot.py
index 700ad38..a8dd59c 100755
--- a/reebot.py
+++ b/reebot.py
@@ -128,9 +128,8 @@ class rBot:
128 for entry in feeds.entries: 128 for entry in feeds.entries:
129 if self.db.log.find_one( { "url" : entry.link } ) is None: 129 if self.db.log.find_one( { "url" : entry.link } ) is None:
130 msgqueue.append( feed['name'] 130 msgqueue.append( feed['name']
131 + " | " + feeds.feed.title 131 + " | " + feeds.feed.title + " > "
132 + " > " + entry.title 132 + " : " . join(map(lambda tag : entry[tag], feed['tags'])) )
133 + " : " + entry.link )
134 # Insert link into log database 133 # Insert link into log database
135 self.db.log.insert( { "url" : entry.link } ) 134 self.db.log.insert( { "url" : entry.link } )
136 135