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.
18 lines
391 B
18 lines
391 B
from os import system as ss
|
|
import os
|
|
from datetime import date
|
|
today = date.today()
|
|
import time
|
|
|
|
files = os.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":
|
|
ss("telegram-upload "+i+" --to https://t.me/streamsradio --caption "+tim)
|
|
ss("mkdir "+tim)
|
|
ss("mv "+i+" "+tim+"/")
|