From 945102868ea93cd3d4dac266ffdbe38fc2bb0086 Mon Sep 17 00:00:00 2001 From: Dimitrij Date: Tue, 30 Mar 2021 22:04:05 +0300 Subject: [PATCH] [ParentalControl] fix subfolder added in favourites list if hide services more info: Parental Control on Subfolder in Favorites not working correctlyhttps://github.com/OpenPLi/enigma2/issues/2567 --- lib/python/Components/ParentalControl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/python/Components/ParentalControl.py b/lib/python/Components/ParentalControl.py index 04cb44fefcb..26a16c613c6 100644 --- a/lib/python/Components/ParentalControl.py +++ b/lib/python/Components/ParentalControl.py @@ -60,7 +60,7 @@ def __init__(self): self.getConfigValues() def serviceMethodWrapper(self, service, method, *args): - if "FROM BOUQUET" in service: + if TYPE_BOUQUET in service: method( service, TYPE_BOUQUET, *args) servicelist = self.readServicesFromBouquet(service, "C") for ref in servicelist: @@ -260,7 +260,7 @@ def hideBlacklist(self): def setHideFlag(self, ref, flag): if TYPE_BOUQUET in ref: - if "alternatives" in ref: + if "alternatives" in ref or TYPE_BOUQUETSERVICE in self.blacklist[ref]: return ref = ref.split(":") ref[1], ref[9] = '519', '1'