From 2dbebfd81cf1e2a9fb197d68667bdafb49c97a47 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Mon, 30 Dec 2013 14:43:06 +0000 Subject: [PATCH] support: fix IPTV configuration migration for disabled/unmapped channels --- support/conf_migrate.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/support/conf_migrate.py b/support/conf_migrate.py index edf2f70b..fbfefa54 100755 --- a/support/conf_migrate.py +++ b/support/conf_migrate.py @@ -217,9 +217,13 @@ def iptv_network ( nets, opts ): m = muxes[url] # Create service entry - d['svcname'] = d['channelname'] + if 'channelname' in d: + d['svcname'] = d['channelname'] + else: + d['svcname'] = '' d['dvb_servicetype'] = d['stype'] d['sid'] = 1 # Let's hope! + d['enabled'] = e m['svcs'] = { '1' : d } # Remove @@ -227,7 +231,6 @@ def iptv_network ( nets, opts ): if f in d: del d[f] - nets.append({ 'type' : 'iptv', 'muxs' : muxes,\ 'skipinitscan' : True,\