my scripts

This commit is contained in:
Justuser 2022-10-04 20:47:17 +03:00
parent 6a31a54dd8
commit 26d881c0b2
2 changed files with 26 additions and 0 deletions

9
st.sh Executable file
View File

@ -0,0 +1,9 @@
wget https://nashe1.hostingradio.ru:18000/nashepunks.mp3 &
th1=$!
echo _###################
echo $th1
echo _###################
sleep 2s
kill -9 $th1

17
up.py Normal file
View File

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