Skip to content

Commit

Permalink
Merge pull request #3752 from Dima73/pull3
Browse files Browse the repository at this point in the history
  • Loading branch information
littlesat committed Aug 13, 2023
2 parents da1df7e + fbceebc commit 33cf2de
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/python/Screens/Ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ def InitCiConfig():
config.ci[slot].show_ci_messages = ConfigYesNo(default=True)
if SystemInfo["CI%dSupportsHighBitrates" % slot]:
highBitrateChoices = [("normal", _("normal")), ("high", _("high"))]
with open("/proc/stb/tsmux/ci%d_tsclk_choices" % slot) as fd:
choices = fd.read()
if "extra_high" in choices:
highBitrateChoices.append(("extra_high", _("extra high")))
if exists("/proc/stb/tsmux/ci%d_tsclk_choices" % slot):
with open("/proc/stb/tsmux/ci%d_tsclk_choices" % slot) as fd:
choices = fd.read()
if "extra_high" in choices:
highBitrateChoices.append(("extra_high", _("extra high")))
config.ci[slot].highBitrate = ConfigSelection(default="high", choices=highBitrateChoices)
config.ci[slot].highBitrate.slotid = slot
config.ci[slot].highBitrate.addNotifier(setCIBitrate)
Expand Down

0 comments on commit 33cf2de

Please sign in to comment.