Add energy station

This commit is contained in:
justuser-31 2022-10-05 12:42:27 +03:00
parent 53b62aa278
commit 0d1ea3cd0e
2 changed files with 7 additions and 0 deletions

3
run.sh
View File

@ -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

4
up.py
View File

@ -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+"/")