Skip to content

Commit 921d5aa

Browse files
Dima73teamblue-e2
authored andcommitted
[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)
1 parent 0fdd827 commit 921d5aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/python/Components/ParentalControl.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def __init__(self):
6262
self.getConfigValues()
6363

6464
def serviceMethodWrapper(self, service, method, *args):
65-
if "FROM BOUQUET" in service:
66-
method(service, TYPE_BOUQUET, *args)
65+
if TYPE_BOUQUET in service:
66+
method( service, TYPE_BOUQUET, *args)
6767
servicelist = self.readServicesFromBouquet(service, "C")
6868
for ref in servicelist:
6969
sRef = str(ref[0])
@@ -262,7 +262,7 @@ def hideBlacklist(self):
262262

263263
def setHideFlag(self, ref, flag):
264264
if TYPE_BOUQUET in ref:
265-
if "alternatives" in ref:
265+
if "alternatives" in ref or TYPE_BOUQUETSERVICE in self.blacklist[ref]:
266266
return
267267
ref = ref.split(":")
268268
ref[1], ref[9] = '519', '1'

0 commit comments

Comments
 (0)