From 0d1ea3cd0eb356fafdf6b1aaed70479678c1c2a1 Mon Sep 17 00:00:00 2001 From: Justuser Date: Wed, 5 Oct 2022 12:42:27 +0300 Subject: [PATCH] Add energy station --- run.sh | 3 +++ up.py | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/run.sh b/run.sh index 4323825..1d21887 100755 --- a/run.sh +++ b/run.sh @@ -2,9 +2,12 @@ while : do wget https://nashe1.hostingradio.ru:18000/nashepunks.mp3 & th1=$! + wget https://ic7.101.ru:8000/v1_1 -O nrj.mp3 + th2=$! sleep 30m kill -9 $th1 + kill -9 $th2 python3 up.py done diff --git a/up.py b/up.py index 2ed4642..2646820 100644 --- a/up.py +++ b/up.py @@ -14,3 +14,7 @@ for i in files: ss("telegram-upload "+i+" --to https://t.me/getnetradio_nashe0punk --caption "+tim) ss("mkdir ARCHIVE/"+tim) ss("mv "+i+" ARCHIVE/"+tim+"/") + elif i == "nrj.mp3": + ss("telegram-upload "+i+" --to https://t.me/getnetradio_nrj --caption "+tim) + ss("mkdir ARCHIVE/"+tim) + ss("mv "+i+" ARCHIVE/"+tim+"/")