[radio] Un setup pour diffuser de la radio paresseusement

This commit is contained in:
Valentin Samir 2013-09-01 21:33:12 +02:00
parent 1be3bdb65c
commit 03f9be4008
7 changed files with 479 additions and 0 deletions

21
tv/radio/sap.py Executable file
View 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()))