From fdb570f7487bd2ad0e45e0132901349a7365c511 Mon Sep 17 00:00:00 2001 From: Justuser Date: Wed, 5 Oct 2022 16:44:43 +0300 Subject: [PATCH] Enable upload all stations --- up.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/up.py b/up.py index 29a5815..2c8d032 100644 --- a/up.py +++ b/up.py @@ -7,9 +7,10 @@ files = listdir() for i in files: tim = today.strftime("%d.%m.%Y_"+time.strftime("%H:%M", time.localtime())) - + #Check type,no need for this #tp = i[i.find('.') + 1:] + if i == "nashepunks.mp3": ss("telegram-upload "+i+" --to https://t.me/getnetradio_nashe0punk --caption "+tim) ss("mkdir ARCHIVE/"+tim) @@ -18,3 +19,5 @@ for i in files: ss("telegram-upload "+i+" --to https://t.me/getnetradio_nrj --caption "+tim) ss("mkdir ARCHIVE/"+tim) ss("mv "+i+" ARCHIVE/"+tim+"/") + else: + pass