Small update

master
justuser 2 years ago
parent 99889165c5
commit b1fb3cb8d1

@ -1,4 +1,3 @@
_
## [Install](https://notabug.org/Justuser/getnetradio/src/master/README.md#0install) | [Usage](https://notabug.org/Justuser/getnetradio/src/master/README.md#1usage) | [Telegram](https://t.me/getnetradio) | [Updates](https://notabug.org/Justuser/getnetradio/src/master/README.md#contact--updates) ## [Install](https://notabug.org/Justuser/getnetradio/src/master/README.md#0install) | [Usage](https://notabug.org/Justuser/getnetradio/src/master/README.md#1usage) | [Telegram](https://t.me/getnetradio) | [Updates](https://notabug.org/Justuser/getnetradio/src/master/README.md#contact--updates)

@ -4,6 +4,7 @@ import time
today = date.today() today = date.today()
files = listdir() files = listdir()
prefix = "~/ARCHIVE/"
for i in files: for i in files:
tim = today.strftime("%d.%m.%Y_"+time.strftime("%H:%M", time.localtime())) tim = today.strftime("%d.%m.%Y_"+time.strftime("%H:%M", time.localtime()))
@ -13,11 +14,11 @@ for i in files:
if i == "nashepunks.mp3": if i == "nashepunks.mp3":
ss("telegram-upload "+i+" --to https://t.me/getnetradio_nashe0punk --caption "+tim) ss("telegram-upload "+i+" --to https://t.me/getnetradio_nashe0punk --caption "+tim)
ss("mkdir ARCHIVE/"+tim) ss("mkdir "+prefix+tim)
ss("mv "+i+" ARCHIVE/"+tim+"/") ss("mv "+i+" "+prefix+tim+"/")
elif i == "nrj.mp3": elif i == "nrj.mp3":
ss("telegram-upload "+i+" --to https://t.me/getnetradio_nrj --caption "+tim) ss("telegram-upload "+i+" --to https://t.me/getnetradio_nrj --caption "+tim)
ss("mkdir ARCHIVE/"+tim) ss("mkdir "+prefix+tim)
ss("mv "+i+" ARCHIVE/"+tim+"/") ss("mv "+i+" "+prefix+tim+"/")
else: else:
pass pass

Loading…
Cancel
Save