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//issues/2567
  • Loading branch information
Dima73 authored and littlesat committed Apr 9, 2021
1 parent 05ed93e commit 16132b8
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 16132b8

Please sign in to comment.