1
0
mirror of https://git.lurk.org/repos/radio-looptober.git synced 2024-12-22 12:30:32 +01:00

generate playlist and reload it

This commit is contained in:
ugrnm 2022-10-09 17:30:55 +02:00
parent 10663ebb2b
commit 48b9809cae

View File

@ -2,10 +2,8 @@
import requests
from time import sleep
import datetime
import os
import datetime, shutil, os
from urllib.parse import urlparse
import shutil
#def download_media(dir, url):
# remote_url
@ -96,3 +94,8 @@ for l in looooops:
grab_media(path, url)
# Once we've done everythin we generate a playlist and ask ezstream
# to reload it
os.system('find . -iname "*mp3" > playlist_loooooops.m3u'\
'&& kill -s HUP `pidof ezstream`')