[radio] Un setup pour diffuser de la radio paresseusement
This commit is contained in:
parent
1be3bdb65c
commit
03f9be4008
7 changed files with 479 additions and 0 deletions
21
tv/radio/sap.py
Executable file
21
tv/radio/sap.py
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/python
|
||||
from config import *
|
||||
import socket
|
||||
|
||||
print("""[global]
|
||||
sap_delay=9
|
||||
interface=eth0
|
||||
#ttl=1
|
||||
""")
|
||||
|
||||
for group in multicast.keys():
|
||||
for name in multicast[group].keys():
|
||||
(chan,dst,port,source)=multicast[group][name]
|
||||
print("""[program]
|
||||
name=%s
|
||||
address=%s
|
||||
port=%s
|
||||
playlist_group=%s
|
||||
user=crans
|
||||
machine=%s
|
||||
""" % (name,dst,port,group, socket.gethostname()))
|
Loading…
Add table
Add a link
Reference in a new issue