From 473247dc35a0da09f93b7c0a91386360323907a6 Mon Sep 17 00:00:00 2001 From: gutosie Date: Sat, 22 Nov 2025 19:10:17 +0200 Subject: [PATCH] Update stbbranding.py --- NeoBoot/files/stbbranding.py | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/NeoBoot/files/stbbranding.py b/NeoBoot/files/stbbranding.py index ce086a3..228420e 100644 --- a/NeoBoot/files/stbbranding.py +++ b/NeoBoot/files/stbbranding.py @@ -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"