Update stbbranding.py

This commit is contained in:
gutosie
2025-11-22 19:10:17 +02:00
committed by GitHub
parent 54ced07dbc
commit 473247dc35

View File

@@ -570,21 +570,15 @@ def getBoxVuModel():
def getVuModel():
try:
if fileExists("/proc/stb/info/vumodel") and not fileExists(
"/proc/stb/info/boxtype"
):
if fileExists("/proc/stb/info/vumodel") and not fileExists("/proc/stb/info/boxtype"):
brand = "Vu+"
with open(
"/proc/stb/info/vumodel", "r", encoding="utf-8", errors="ignore"
) as f:
procmodel = f.readline().strip()
model = (
procmodel.title()
.replace("olose", "olo SE")
.replace("olo2se", "olo2 SE")
.replace("2", "²")
)
return model
f = open("/proc/stb/info/vumodel", 'r')
procmodel = f.readline().strip()
f.close()
model = procmodel.title().replace("olose", "olo SE").replace(
"olo2se", "olo2 SE").replace("2", "²")
return model
except Exception:
pass
return "unknown"