mirror of
https://github.com/anxdpanic/plugin.video.youtube.git
synced 2025-12-15 15:10:34 -08:00
add age gate enforcement
This commit is contained in:
parent
7cc3a28770
commit
e3cae8e039
8 changed files with 45 additions and 8 deletions
|
|
@ -118,3 +118,6 @@ class AbstractSettings(object):
|
|||
index = self.get_int(constants.setting.SAFE_SEARCH, 0)
|
||||
values = {0: 'moderate', 1: 'none', 2: 'strict'}
|
||||
return values[index]
|
||||
|
||||
def age_gate(self):
|
||||
return self.get_bool(constants.setting.AGE_GATE, True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue