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/enigma2/issues/2567

(cherry picked from commit 16132b844f66c7a8370403667e67dcf91e982103)
  • Loading branch information
Dima73 authored and teamblue-e2 committed Apr 14, 2021
1 parent fbf95dc commit af20f1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/python/Components/ParentalControl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit af20f1e

Please sign in to comment.