diff --git a/tv/radio/icecast.py b/tv/radio/icecast.py index 969c4692..3f23eae4 100755 --- a/tv/radio/icecast.py +++ b/tv/radio/icecast.py @@ -1,9 +1,22 @@ #!/usr/bin/python # -*- coding: utf8 -*- +# Utilisé pour générer le contenu du fichier /etc/icecast2/radio.xml + import urlparse import urllib from config import * +auth_template = """ + /%s + + +""" i=0 for group in multicast.keys(): for (title, (name,dst,port,sources)) in multicast[group].items(): @@ -23,3 +36,4 @@ for group in multicast.keys(): 1 1 """ % (host, port, p.path, name) + print auth_template % name