Print urls_expire_after only with a flag
@@ -18,8 +18,10 @@ def config(urls_expire_after: bool, print=print):
from plextraktsync.factory import factory
config = factory.config
- print(f"# Config File: {config.config_yml}")
- config.dump(print=print)
-
+ if urls_expire_after:
print("# HTTP Cache")
config.http_cache.dump(print=print)
+ return
+
+ print(f"# Config File: {config.config_yml}")
+ config.dump(print=print)
