diff --git a/lib/python/Components/SystemInfo.py b/lib/python/Components/SystemInfo.py index c10ae8db93..6f53ff5a69 100644 --- a/lib/python/Components/SystemInfo.py +++ b/lib/python/Components/SystemInfo.py @@ -86,18 +86,6 @@ def deleteItem(self, item): DISPLAYBRAND = BoxInfo.getItem("displaybrand") MACHINEBUILD = BoxInfo.getItem("machinebuild") OEA = split('(\d.*)', BoxInfo.getItem("oe"))[1] -E2Branches = { - 'developer': 'Developer', - 'release': 'Release' -} -CommitLogs = [ - (f"https://api.github.com/repos/oe-alliance/oe-alliance-core/commits?sha={OEA}", "OE-A Core"), - ("https://api.github.com/repos/OpenViX/enigma2/commits?sha=%s" % getattr(E2Branches, SystemInfo["imagetype"], "Py3D"), "Enigma2"), - ("https://api.github.com/repos/OpenViX/skins/commits", "ViX Skins"), - ("https://api.github.com/repos/oe-alliance/oe-alliance-plugins/commits", "OE-A Plugins"), - ("https://api.github.com/repos/oe-alliance/AutoBouquetsMaker/commits", "AutoBouquetsMaker"), - ("https://api.github.com/repos/oe-alliance/branding-module/commits", "Branding Module"), -] def getBoxType(): # this function mimics the function of the same name in branding module diff --git a/lib/python/Screens/GitCommitInfo.py b/lib/python/Screens/GitCommitInfo.py index b2527c57bf..6f38c144d1 100644 --- a/lib/python/Screens/GitCommitInfo.py +++ b/lib/python/Screens/GitCommitInfo.py @@ -3,7 +3,7 @@ from Components.Label import Label from Components.ScrollLabel import ScrollLabel from Components.Sources.StaticText import StaticText -from Components.SystemInfo import SystemInfo, CommitLogs +from Components.SystemInfo import SystemInfo, CommitLogs, OEA from Screens.Screen import Screen, ScreenSummary from enigma import eTimer @@ -20,7 +20,18 @@ ImageVer = "%s.%s" % (SystemInfo["imagebuild"], SystemInfo["imagedevbuild"]) ImageVer = float(ImageVer) - +E2Branches = { + 'developer': 'Developer', + 'release': 'Release' +} +CommitLogs = [ + (f"https://api.github.com/repos/oe-alliance/oe-alliance-core/commits?sha={OEA}", "OE-A Core"), + ("https://api.github.com/repos/OpenViX/enigma2/commits?sha=%s" % getattr(E2Branches, SystemInfo["imagetype"], "Release"), "Enigma2"), + ("https://api.github.com/repos/OpenViX/skins/commits", "ViX Skins"), + ("https://api.github.com/repos/oe-alliance/oe-alliance-plugins/commits", "OE-A Plugins"), + ("https://api.github.com/repos/oe-alliance/AutoBouquetsMaker/commits", "AutoBouquetsMaker"), + ("https://api.github.com/repos/oe-alliance/branding-module/commits", "Branding Module"), +] project = 0 cachedProjects = {}