From 794573fbf1265ae63dd27abb891b4339c5e93ea3 Mon Sep 17 00:00:00 2001 From: Stephen Date: Mon, 1 Jun 2020 15:23:07 -0700 Subject: [PATCH] clean up spot --- .gitignore | 3 ++- spot.py | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index f6e1422..343df4f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -secrets \ No newline at end of file +secrets +smpark.in.code-workspace \ No newline at end of file diff --git a/spot.py b/spot.py index 096fc66..b2e7e1b 100644 --- a/spot.py +++ b/spot.py @@ -139,10 +139,6 @@ def spotNP(imgcatBool, timeBool): print("\033[95m\033[1m"+title+"\033[0m by ", end='') print("\033[94m\033[1m"+artist+"\033[0m is "+text+" on ", end='') print("\033[92m\033[1m"+devicename+"\033[0m") - if (imgcatBool): - im = np.asarray(Image.open(urllib.request.urlopen(imgurl))) - time.sleep(1) - imgcat.imgcat(im) if (timeBool): print(str(round(currentSec//60))+":"+(str(round(currentSec%60))).zfill(2)+"/"+str(round(durationSec//60))+":"+(str(round(durationSec%60)).zfill(2))) return r.status_code