Use config.cache_path property
MODIFY
plextraktsync/factory.py
plextraktsync/factory.py
@@ -42,8 +42,7 @@ def session(self):
from requests_cache import CachedSession
config = self.config()
- trakt_cache = config["cache"]["path"]
- session = CachedSession(trakt_cache)
+ session = CachedSession(config.cache_path)
return session

Use config.cache_path property