Fix cache.path access for unmerged config
MODIFY
plex_trakt_sync/config.py
plex_trakt_sync/config.py
@@ -45,7 +45,6 @@ def initialize(self):
fp.write(json.dumps(defaults, indent=4))
config = self.load_json(self.config_file)
- config["cache"]["path"] = config["cache"]["path"].replace("$PTS_CACHE_DIR", PTS_CACHE_DIR)
self.update(config)
load_dotenv(self.env_file)
@@ -57,6 +56,8 @@ def initialize(self):
self.initialized = True
+ self["cache"]["path"] = self["cache"]["path"].replace("$PTS_CACHE_DIR", PTS_CACHE_DIR)
+
def save(self):
with open(self.env_file, "w") as txt:
txt.write("# This is .env file for PlexTraktSync\n")

Fix cache.path access for unmerged config