[icecast2/radio.xml] reload tv.radio.config a l'execution du script
This commit is contained in:
parent
378e0d9b6a
commit
557a98cf80
1 changed files with 5 additions and 3 deletions
|
@ -5,7 +5,9 @@ info["perms"] = 0644
|
|||
|
||||
import urlparse
|
||||
import urllib
|
||||
from tv.radio.config import *
|
||||
import tv.radio.config as tv_config
|
||||
|
||||
tv_config = reload(tv_config)
|
||||
|
||||
print """<![CDATA[
|
||||
Fichier générer par BCfg2
|
||||
|
@ -37,8 +39,8 @@ auth_template = """<mount>
|
|||
</authentication>
|
||||
</mount>"""
|
||||
i=0
|
||||
for group in multicast.keys():
|
||||
for (title, (name,dst,port,sources)) in multicast[group].items():
|
||||
for group in tv_config.multicast.keys():
|
||||
for (title, (name,dst,port,sources)) in tv_config.multicast[group].items():
|
||||
p=urlparse.urlparse(sources[0])
|
||||
if ':' in p.netloc:
|
||||
host=p.netloc.split(':')[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue