Fix handling empty policy from config
MODIFY
plextraktsync/config/HttpCacheConfig.py
plextraktsync/config/HttpCacheConfig.py
@@ -42,4 +42,8 @@ def urls_expire_after(self) -> ExpirationPatterns:
NOTE: If there is more than one match, the first match will be used in the order they are defined
"""
- return {**self.default_policy, **self.policy}
+ policy = dict(self.default_policy)
+ if self.policy:
+ policy.update(self.policy)
+
+ return policy

Fix handling empty policy from config