]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
[migrate] fix property mapping for muxes 306/head
authorxhaggi <sascha.woo@gmail.com>
Wed, 20 Nov 2013 18:04:59 +0000 (19:04 +0100)
committerxhaggi <sascha.woo@gmail.com>
Wed, 20 Nov 2013 18:04:59 +0000 (19:04 +0100)
support/conf_migrate.py

index 3a2921786cc95b885c7606447caafef28484e995..da2a4d3a11b9be813700c863859483d7e324cdc6 100755 (executable)
@@ -59,7 +59,9 @@ def load_muxes ( path, adps ):
     'transportstreamid' : 'tsid',
     'originalnetworkid' : 'onid',
     'initialscan'       : 'initscan',
-    'default_authority' : 'cridauth'
+    'default_authority' : 'cridauth',
+    'delivery_system'   : 'delsys',
+    'symbol_rate'       : 'symbolrate'
   }
   muxs = {}
   for f in glob.glob(os.path.join(path, 'dvbmuxes', '*', '*')):
@@ -86,16 +88,16 @@ def load_muxes ( path, adps ):
     m['svcs'] = {}
 
     # Fixups
-    if 'delivery_system' in m:
-      m['delivery_system'] = m['delivery_system'][4:]
+    if 'delsys' in m:
+      m['delsys'] = m['delsys'][4:]
     elif t == 'A':
-      m['delivery_system'] = 'ATSC'
+      m['delsys'] = 'ATSC'
     elif t == 'T':
-      m['delivery_system'] = 'DVBT'
+      m['delsys'] = 'DVBT'
     elif t == 'C':
-      m['delivery_system'] = 'DVBC_ANNEX_AC'
+      m['delsys'] = 'DVBC_ANNEX_AC'
     elif t == 'S':
-      m['delivery_system'] = 'DVBS'
+      m['delsys'] = 'DVBS'
     if 'polarisation' in m:
       m['polarisation'] = m['polarisation'][0]
     if 'modulation' in m and m['polarisation'] == 'PSK_8':