mirror of
https://github.com/anxdpanic/plugin.video.youtube.git
synced 2025-12-15 15:10:34 -08:00
fix settings checks and defaults
This commit is contained in:
parent
dc8829a856
commit
d45740749c
1 changed files with 7 additions and 3 deletions
|
|
@ -119,13 +119,17 @@ class AbstractSettings(object):
|
|||
return verify
|
||||
|
||||
def allow_dev_keys(self):
|
||||
return self.get_bool(constants.setting.ALLOW_DEV_KEYS, True)
|
||||
return self.get_bool(constants.setting.ALLOW_DEV_KEYS, False)
|
||||
|
||||
def use_dash_videos(self):
|
||||
return self.get_bool(constants.setting.DASH_VIDEOS, True)
|
||||
if not self.use_dash():
|
||||
return False
|
||||
return self.get_bool(constants.setting.DASH_VIDEOS, False)
|
||||
|
||||
def use_dash_live_streams(self):
|
||||
return self.get_bool(constants.setting.DASH_LIVE_STREAMS, True)
|
||||
if not self.use_dash():
|
||||
return False
|
||||
return self.get_bool(constants.setting.DASH_LIVE_STREAMS, False)
|
||||
|
||||
def httpd_port(self):
|
||||
return self.get_int(constants.setting.HTTPD_PORT, 50152)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue