Skip to content

Commit

Permalink
Small adustments in About.py
Browse files Browse the repository at this point in the history
shorten NIM List
Change Text Rev to Revision
  • Loading branch information
teamblue-e2 authored and teamblue-e2 committed Jan 12, 2024
1 parent 8dd5cf3 commit 8463473
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions lib/python/Screens/About.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(self, session):
AboutText += _("Serial: ") + serial + "\n"
AboutText += _("CPU: ") + cpu + "\n"
AboutText += _("Image: ") + about.getImageTypeString() + " " + ImageType + "\n"
AboutText += _("Image Rev: ") + getE2Rev() + "\n"
AboutText += _("Image revision: ") + getE2Rev() + "\n"
AboutText += _("OE Version: ") + about.getOEVersionString() + "\n"
ImageVersion = _("Last upgrade: ") + about.getImageVersionString()
AboutText += ImageVersion + "\n"
Expand Down Expand Up @@ -139,12 +139,11 @@ def strip_non_ascii(boltversion):
twisted = popen('opkg list-installed |grep -i python3-twisted-core').read().strip().split(' - ')[1]
AboutText += "Python-Twisted: " + str(twisted) + "\n"

AboutText += "\n"
self["TunerHeader"] = StaticText(_("Detected NIMs:"))
#AboutText += _("Detected NIMs:") + "\n"
AboutText += "\n" + _("Detected NIMs:") + "\n"

nims = nimmanager.nimList()
for count in list(range(len(nims))):
nims = nimmanager.nimListCompressed()
for count in range(len(nims)):
if count < 4:
self["Tuner" + str(count)] = StaticText(nims[count])
else:
Expand All @@ -171,9 +170,6 @@ def strip_non_ascii(boltversion):
self["hddA"] = StaticText(hddinfo)
AboutText += hddinfo

#AboutText += "\n\n" + _("Network Info")
#for x in about.GetIPsFromNetworkInterfaces():
# AboutText += "\n" + iNetwork.getFriendlyAdapterDescription(x[0]) + " :" + "/dev/" + x[0] + " " + x[1]
AboutText += '\n\n' + _("Uptime") + ": " + about.getBoxUptime()
if SystemInfo["HasHDMI-CEC"] and config.hdmicec.enabled.value:
address = config.hdmicec.fixed_physical_address.value if config.hdmicec.fixed_physical_address.value != "0.0.0.0" else _("not set")
Expand Down

0 comments on commit 8463473

Please sign in to comment.