Add helper to cast API parameter true to bool

This commit is contained in:
JonnyWong16 2020-02-22 22:33:49 -08:00
parent 37d09e9bad
commit 9edbe6af37
4 changed files with 29 additions and 21 deletions

View file

@ -36,7 +36,7 @@ import time
import tzlocal
import plexpy
from plexpy import config, database, logger, webstart
from plexpy import config, database, helpers, logger, webstart
# Register signals, such as CTRL + C
@ -117,7 +117,7 @@ def main():
plexpy.SYS_UTC_OFFSET = datetime.datetime.now(plexpy.SYS_TIMEZONE).strftime('%z')
if os.getenv('TAUTULLI_DOCKER', False) == 'True':
if helpers.bool_true(os.getenv('TAUTULLI_DOCKER', False)):
plexpy.DOCKER = True
if args.dev: