General update

This commit is contained in:
justuser-31 2022-10-04 21:06:03 +03:00
parent 30f0e442f4
commit adcc3d225d
2 changed files with 10 additions and 13 deletions

15
st.sh
View File

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

8
up.py
View File

@ -1,14 +1,12 @@
from os import system as ss from os import listdir,system as ss
import os
from datetime import date from datetime import date
today = date.today()
import time import time
files = os.listdir() today = date.today()
files = listdir()
for i in files: for i in files:
tim = today.strftime("%d.%m.%Y_"+time.strftime("%H:%M", time.localtime())) tim = today.strftime("%d.%m.%Y_"+time.strftime("%H:%M", time.localtime()))
#print(tim)
tp = i[i.find('.') + 1:] tp = i[i.find('.') + 1:]
if tp == "mp3": if tp == "mp3":