mirror of
https://git.lurk.org/repos/radio-looptober.git
synced 2024-12-22 20:40:32 +01:00
generate playlist and reload it
This commit is contained in:
parent
10663ebb2b
commit
48b9809cae
@ -2,10 +2,8 @@
|
|||||||
|
|
||||||
import requests
|
import requests
|
||||||
from time import sleep
|
from time import sleep
|
||||||
import datetime
|
import datetime, shutil, os
|
||||||
import os
|
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
import shutil
|
|
||||||
|
|
||||||
#def download_media(dir, url):
|
#def download_media(dir, url):
|
||||||
# remote_url
|
# remote_url
|
||||||
@ -96,3 +94,8 @@ for l in looooops:
|
|||||||
|
|
||||||
grab_media(path, url)
|
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`')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user