[Krypton] pvrmanager.enabled substitution - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: [Krypton] pvrmanager.enabled substitution (/showthread.php?tid=265728) |
[Krypton] pvrmanager.enabled substitution - Gade - 2016-03-24 As of latest nightly, the system bool and function pvrmanager.enabled is nuked. Now the pvr manager is enabled if any pvr add-ons are enabled. Any idea what to use instead? I'm looking for a bool that instantly tells if pvr is enabled or not. Pvr.HasTVChannels or !IsEmpty(Pvr.BackendName) doesn't returns true until the add-on or channels are loaded. EDIT: A bool like PvrManager.IsEnabled would be extremely appreciated as I see many skins using System.GetBool(pvrmanager.enabled) RE: [Krypton] pvrmanager.enabled substitution - ronie - 2016-03-29 this is what confluence uses: - PVR.HasTVChannels - PVR.HasRadioChannels RE: [Krypton] pvrmanager.enabled substitution - Gade - 2016-03-29 The problem is that those bools first turn true once the channels are loadet. As I see it, PVR Manager is started way sooner than this, but only if a PVR add-on is enabled. RE: [Krypton] pvrmanager.enabled substitution - axbmcuser - 2016-05-31 +1 Did you find a solution? The removal of "System.GetBool(pvrmanager.enabled)" really is bad for Skinning. RE: [Krypton] pvrmanager.enabled substitution - Gade - 2016-05-31 I agree from a skinning perspective that it changes some things. A new bool like PvrManager.IsEnabled really would make things easier. I use Pvr.HasTVChannels and Pvr.HasRadioChannels instead. RE: [Krypton] pvrmanager.enabled substitution - axbmcuser - 2016-05-31 Hey! Since i don't like additional main menu items "popping up" some time after boot i rely on a manual configuration to enable/disable the main menu items for PVR-TV and PVR-Radio for now in Krypton. Not the best solution, but well. What else can we do for now? Nothing, as far as i can see. RE: [Krypton] pvrmanager.enabled substitution - axbmcuser - 2016-09-25 If anyone is interested - there now seems to be a replacement for KODI 17: http://forum.kodi.tv/showthread.php?tid=250862&pid=2418774#pid2418774 (Haven't tested myself) RE: [Krypton] pvrmanager.enabled substitution - Gade - 2016-09-25 Yup, tested and works like a charm I'm already using that several places, especially for the home screen category items. Thanks for the reminder! |