From 87d23c11fcc4ad1dcc7cd62d539ca38f1d23f53d Mon Sep 17 00:00:00 2001 From: fridmanos Date: Wed, 11 Jul 2018 22:33:34 +0200 Subject: [PATCH] Update 'watchthread.py' --- watchthread.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watchthread.py b/watchthread.py index cd80901..7591263 100644 --- a/watchthread.py +++ b/watchthread.py @@ -16,7 +16,7 @@ if len(sys.argv) < 3: exit(1) # Notify user of new post -def notify_user(start, url, diff, com): +def notify_user(start,com): system('notify-send "{} posted:" "{}" --icon=dialog-information'.format('#' + str(start), com)) # Dictionary of URLs to watch for with their posts count. @@ -47,5 +47,5 @@ while True: if count > c : diff = count - c; urls[url] = count - notify_user(data['posts'][urls[url] - diff]['no'], url, diff, data['posts'][count-1]['com']) + notify_user(data['posts'][urls[url] - diff]['no'],data['posts'][count-1]['com']) time.sleep(float(sys.argv[2]))