Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BoxInfo] force update MACHINE h9twin(se)/more ET(Xtrend) #4179

Merged
merged 1 commit into from
Jan 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions lib/python/Components/SystemInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def __init__(self, root=""):
print("[SystemInfo] Enigma information file data loaded, but checksum failed.")
else:
print("[SystemInfo] ERROR: %s is not available! The system is unlikely to boot or operate correctly." % file)
self.correctValue()
self.boxInfo.setImmutable() #make what is derived from enigma.info immutable

def processValue(self, value):
Expand Down Expand Up @@ -97,6 +98,37 @@ def deleteItem(self, item, *args, **kws):
del self.boxInfo[item]
return True

def correctValue(self):
machine = BoxInfo.getItem("machine")
model = str(BoxInfo.getItem("model"))
value = ""
if machine.startswith("h9combo") and model.startswith("h9twin"):
value = model
elif machine.startswith("et"):
if machine == "et4x00":
value = "et4000"
elif machine == "et5x00":
value = "et5000"
elif machine == "et6x00":
if model == "et6000":
value = model
elif model == "et6500":
value = model
elif machine == "et7x00":
if model == "et7000":
value = model
elif model == "et7500":
value = model
elif machine == "et9x00":
if model == "et9000":
value = model
elif model == "et9200":
value = model
elif model == "et9500":
value = model
if value:
self.setItem("machine", value)


BoxInfo = BoxInformation()

Expand Down
Loading