Skip to content

Commit 5b31f81

Browse files
Dima73BarviX6
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/issues/2567
1 parent e8e98e6 commit 5b31f81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/python/Components/ParentalControl.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __init__(self):
6060
self.getConfigValues()
6161

6262
def serviceMethodWrapper(self, service, method, *args):
63-
if "FROM BOUQUET" in service:
63+
if TYPE_BOUQUET in service:
6464
method( service, TYPE_BOUQUET, *args)
6565
servicelist = self.readServicesFromBouquet(service, "C")
6666
for ref in servicelist:
@@ -260,7 +260,7 @@ def hideBlacklist(self):
260260

261261
def setHideFlag(self, ref, flag):
262262
if TYPE_BOUQUET in ref:
263-
if "alternatives" in ref:
263+
if "alternatives" in ref or TYPE_BOUQUETSERVICE in self.blacklist[ref]:
264264
return
265265
ref = ref.split(":")
266266
ref[1], ref[9] = '519', '1'

0 commit comments

Comments
 (0)