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.
|
|
|
from os import listdir,system as ss
|
|
|
|
from datetime import date
|
|
|
|
import time
|
|
|
|
|
|
|
|
today = date.today()
|
|
|
|
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)
|
|
|
|
ss("mv "+i+" ARCHIVE/"+tim+"/")
|