From 72bf5698c843af4b2c7653efd89ec5b8ecfe8453 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 15 Dec 2020 13:09:03 -0800 Subject: [PATCH] Clear the clipboard before starting to watch for links. --- watchforlinks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/watchforlinks.py b/watchforlinks.py index a3fa062..2f0af3c 100644 --- a/watchforlinks.py +++ b/watchforlinks.py @@ -32,6 +32,7 @@ def loop_once(extension, regex=None): h.close() def loop_forever(extension, regex): + pyperclip.copy('') while True: loop_once(extension=extension, regex=regex) time.sleep(1)