scripts/tv/sat_conf.py
dubost e3a4c884ef Ajout de France 24 et suppression de chaines mortes
darcs-hash:20061207121613-c3cc4-17313a3662c2c4219d9f70dd99fdd87ea80a3bc9.gz
2006-12-07 13:16:13 +01:00

38 lines
1.3 KiB
Python
Executable file

#! /usr/bin/env python
# -*- coding: iso-8859-15 -*-
""" Défini les transpondeurs à associer à chacune des cartes """
from sat_base import *
from socket import gethostname
host = gethostname()
transpondeurs = { 'canard' : [ TNT_R4_498000(0) ,
Hotbird_12476(1) ,
Hotbird_11240(2) ,
Hotbird_12597(3) ,
Hotbird_12577(4) ],
'lapin' : [ Hotbird_11604(0) ,
Hotbird_10911(1) ,
TNT_R1_586000(2) ,
TNT_R6_562000(3) ,
TNT_R2_474000(4) ,
TNT_R3_522000(5) ],
'oie' : [ Hotbird_10796(0) ,
Hotbird_10873(1) ,
Hotbird_11137(2) ,
Hotbird_11623(3) ,
Hotbird_12673(4) ]
}
conf = transpondeurs.get(host,[])
if __name__ == '__main__' :
import sys
if len(sys.argv) == 2 :
conf = transpondeurs.get(sys.argv[1],[])
for t in conf :
print t
for chaine in t.chaines.values() :
print '\t%s' % chaine