From 26d881c0b23ee418cb1bc399e5a065e54b18901a Mon Sep 17 00:00:00 2001 From: Justuser Date: Tue, 4 Oct 2022 20:47:17 +0300 Subject: [PATCH] my scripts --- st.sh | 9 +++++++++ up.py | 17 +++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100755 st.sh create mode 100644 up.py diff --git a/st.sh b/st.sh new file mode 100755 index 0000000..fb24df1 --- /dev/null +++ b/st.sh @@ -0,0 +1,9 @@ +wget https://nashe1.hostingradio.ru:18000/nashepunks.mp3 & +th1=$! +echo _################### +echo $th1 +echo _################### + +sleep 2s + +kill -9 $th1 diff --git a/up.py b/up.py new file mode 100644 index 0000000..fc0dd3e --- /dev/null +++ b/up.py @@ -0,0 +1,17 @@ +from os import system as ss +import os +from datetime import date +today = date.today() +import time + +files = os.listdir() + +for i in files: + tim = today.strftime("%d.%m.%Y_"+time.strftime("%H:%M", time.localtime())) + #print(tim) + + tp = i[i.find('.') + 1:] + if tp == "mp3": + ss("telegram-upload "+i+" --to https://t.me/streamsradio --caption "+tim) + ss("mkdir "+tim) + ss("mv "+i+" "+tim+"/")