Skip to content

Commit

Permalink
[ParentalControl] fix subfolder added in favourites list if hide serv…
Browse files Browse the repository at this point in the history
…ices

more info:
Parental Control on Subfolder in Favorites not working
correctlyhttps://github.com/OpenPLi/issues/2567
  • Loading branch information
Dima73 authored and BarviX6 committed Apr 9, 2021
1 parent e8e98e6 commit 5b31f81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/python/Components/ParentalControl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 5b31f81

Please sign in to comment.