diff --git a/st.sh b/st.sh index fb24df1..3250e4f 100755 --- a/st.sh +++ b/st.sh @@ -1,9 +1,8 @@ -wget https://nashe1.hostingradio.ru:18000/nashepunks.mp3 & -th1=$! -echo _################### -echo $th1 -echo _################### +while : +do + wget https://nashe1.hostingradio.ru:18000/nashepunks.mp3 & + th1=$! -sleep 2s - -kill -9 $th1 + sleep 5m + kill -9 $th1 +done diff --git a/up.py b/up.py index fc0dd3e..9150836 100644 --- a/up.py +++ b/up.py @@ -1,14 +1,12 @@ -from os import system as ss -import os +from os import listdir,system as ss from datetime import date -today = date.today() import time -files = os.listdir() +today = date.today() +files = 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":