File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77from plexapi .config import PlexConfig , reset_base_headers
88import plexapi .const as const
9- from plexapi .utils import SecretsFilter , setDatetimeTimezone
9+ from plexapi .utils import SecretsFilter , setDatetimeTimezone , DATETIME_TIMEZONE as GLOBAL_DATETIME_TIMEZONE
1010
1111# Load User Defined Config
1212DEFAULT_CONFIG_PATH = os .path .expanduser ('~/.config/plexapi/config.ini' )
1717PROJECT = 'PlexAPI'
1818VERSION = __version__ = const .__version__
1919TIMEOUT = CONFIG .get ('plexapi.timeout' , 30 , int )
20- DATETIME_TIMEZONE = setDatetimeTimezone (CONFIG .get ('plexapi.timezone' , False ))
20+ DATETIME_TIMEZONE = GLOBAL_DATETIME_TIMEZONE
21+ setDatetimeTimezone (CONFIG .get ('plexapi.timezone' , False )) # Sets the DATETIME_TIMEZONE global variable
22+
2123X_PLEX_CONTAINER_SIZE = CONFIG .get ('plexapi.container_size' , 100 , int )
2224X_PLEX_ENABLE_FAST_CONNECT = CONFIG .get ('plexapi.enable_fast_connect' , False , bool )
2325
You can’t perform that action at this time.
0 commit comments