support: fix IPTV configuration migration for disabled/unmapped channels
This commit is contained in:
parent
f75037aee7
commit
2dbebfd81c
1 changed files with 5 additions and 2 deletions
|
@ -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,\
|
||||
|
|
Loading…
Add table
Reference in a new issue