From af20f1e27ea8266ecbd804d3c260189899b03d16 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 (cherry picked from commit 16132b844f66c7a8370403667e67dcf91e982103) --- lib/python/Components/ParentalControl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/python/Components/ParentalControl.py b/lib/python/Components/ParentalControl.py index c05ab8a6ad..70eee10a12 100644 --- a/lib/python/Components/ParentalControl.py +++ b/lib/python/Components/ParentalControl.py @@ -62,8 +62,8 @@ def __init__(self): self.getConfigValues() def serviceMethodWrapper(self, service, method, *args): - if "FROM BOUQUET" in service: - method(service, TYPE_BOUQUET, *args) + if TYPE_BOUQUET in service: + method( service, TYPE_BOUQUET, *args) servicelist = self.readServicesFromBouquet(service, "C") for ref in servicelist: sRef = str(ref[0]) @@ -262,7 +262,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'