From adcc3d225dce06d75f4d0940b069d5afc1f8249d Mon Sep 17 00:00:00 2001 From: Justuser Date: Tue, 4 Oct 2022 21:06:03 +0300 Subject: [PATCH] General update --- st.sh | 15 +++++++-------- up.py | 8 +++----- 2 files changed, 10 insertions(+), 13 deletions(-) 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":