This commit is contained in:
@@ -16,13 +16,17 @@ def count():
|
||||
client.login()
|
||||
|
||||
unread = client.get_unread_count()
|
||||
|
||||
hls = client.get_headlines(feed_id=-3)
|
||||
fresh = 0
|
||||
for article in hls:
|
||||
fresh = fresh + 1
|
||||
|
||||
feeds = client.get_feed_count()
|
||||
|
||||
print "unread.value %s" % unread
|
||||
print "fresh.value %s" % fresh
|
||||
print "feeds.value %s" % feeds
|
||||
|
||||
|
||||
def config():
|
||||
@@ -44,6 +48,11 @@ fresh.colour 336600
|
||||
fresh.max 10000
|
||||
fresh.min 0
|
||||
fresh.info The number of articles within the last 24 hrs
|
||||
feeds.label Feeds
|
||||
feeds.colour 006699
|
||||
feeds.max 10000
|
||||
feeds.min 0
|
||||
feeds.info The number of subscribed feeds
|
||||
"""
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
|
||||
Reference in New Issue
Block a user