You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
getnetradio/up.py

16 lines
373 B

2 years ago
from os import listdir,system as ss
2 years ago
from datetime import date
import time
2 years ago
today = date.today()
files = listdir()
2 years ago
for i in files:
tim = today.strftime("%d.%m.%Y_"+time.strftime("%H:%M", time.localtime()))
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+"/")