Skip to content

Commit

Permalink
ServiceInfo: Solve multiple provider Seca ECM pids issue (e.g. VH1 19…
Browse files Browse the repository at this point in the history
….2E)
  • Loading branch information
littlesat committed Jun 18, 2017
1 parent 9809c7e commit 805b9dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/python/Screens/ServiceInfo.py
Expand Up @@ -275,7 +275,7 @@ def ShowECMInformation(self):
if caid[2]:
provid = ""
if CaIdDescription == "Seca":
provid = caid[2][:4]
provid = ",".join([caid[2][i:i+4] for i in range(0, len(caid[2]), 30)])
if CaIdDescription == "Nagra":
provid = caid[2][-4:]
if CaIdDescription == "Via":
Expand All @@ -286,7 +286,7 @@ def ShowECMInformation(self):
extra_info = "extra data=%s" % caid[2]
from Tools.GetEcmInfo import GetEcmInfo
ecmdata = GetEcmInfo().getEcmData()
color = "\c00??;?00" if caid[1] == int(ecmdata[3], 16) and caid[0] == int(ecmdata[1], 16) else ""
color = "\c00??;?00" if caid[0] == int(ecmdata[1], 16) and (caid[1] == int(ecmdata[3], 16) or str(int(ecmdata[2], 16)) in provid) else ""
tlist.append(ServiceInfoListEntry("%sECMPid %04X (%d) %04X-%s %s" % (color, caid[1], caid[1], caid[0], CaIdDescription, extra_info)))
if not tlist:
tlist.append(ServiceInfoListEntry(_("No ECMPids available (FTA Service)")))
Expand Down

0 comments on commit 805b9dd

Please sign in to comment.