Set self.initialized early to avoid recursion error
@@ -61,6 +61,8 @@ def __contains__(self, item):
return dict.__contains__(self, item)
def initialize(self):
+ self.initialized = True
+
defaults = self.load_json(default_config_file)
self.update(defaults)
@@ -79,8 +81,6 @@ def initialize(self):
value = None
self[key] = value
- self.initialized = True
-
if self["PLEX_LOCALURL"] is None: # old .env file used before 0.18.21
self["PLEX_LOCALURL"] = self["PLEX_FALLBACKURL"]
self["PLEX_FALLBACKURL"] = None
