[AnimationSetup] fix default animation speed for uno4k, uno4kse, zero4k.
authorhschang <chang@dev3>
Wed, 28 Feb 2018 07:16:09 +0000 (16:16 +0900)
committerhschang <chang@dev3>
Wed, 28 Feb 2018 07:16:26 +0000 (16:16 +0900)
lib/python/Components/SystemInfo.py
lib/python/Plugins/SystemPlugins/AnimationSetup/plugin.py

index 5b01c4c..f0d06c9 100644 (file)
@@ -35,4 +35,4 @@ SystemInfo["ScrambledPlayback"] = HardwareInfo().get_vu_device_name() in ("solo4
 SystemInfo["FastChannelChange"] =  fileExists("/proc/stb/frontend/fbc/fcc")
 SystemInfo["MiniTV"] = fileExists("/proc/stb/lcd/live_enable")
 SystemInfo["DisableUsbRecord"] = HardwareInfo().get_vu_device_name() in ("solo4k", "uno4kse", "zero4k")
-
+SystemInfo["DefaultAniSpeed"] = HardwareInfo().get_vu_device_name() in ("uno4k", "uno4kse", "zero4k") and 25 or 20
index 80327d2..98212ea 100644 (file)
@@ -8,11 +8,12 @@ from Components.config import config, ConfigNumber, ConfigSelection, ConfigSelec
 from Plugins.Plugin import PluginDescriptor
 
 from enigma import setAnimation_current, setAnimation_speed, setAnimation_current_listbox
+from Components.SystemInfo import SystemInfo
 
 # default = slide to left
 g_default = {
        "current": 6,
-       "speed"  : 20,
+       "speed"  : SystemInfo.get("DefaultAniSpeed", 20),
        "listbox": "0",
 }
 g_max_speed = 30