Add config_yml property
MODIFY
plextraktsync/config.py
plextraktsync/config.py
from dotenv import load_dotenv
-from plextraktsync.path import (cache_dir, config_file, default_config_file,
- env_file)
+from plextraktsync.path import (cache_dir, config_file, config_yml,
+ default_config_file, env_file)
"""
Platform name to identify our application
@@ -80,6 +80,7 @@ class Config(dict):
initialized = False
config_file = config_file
+ config_yml = config_yml
env_file = env_file
def __getitem__(self, item):

MODIFY
plextraktsync/path.py
plextraktsync/path.py
@@ -17,6 +17,7 @@ def __init__(self):
self.default_config_file = join(self.module_path, "config.default.json")
self.config_file = join(self.config_dir, "config.json")
+ self.config_yml = join(self.config_dir, "config.yml")
self.pytrakt_file = join(self.config_dir, ".pytrakt.json")
self.env_file = join(self.config_dir, ".env")
self.log_file = join(self.log_dir, "last_update.log")
@@ -66,6 +67,7 @@ def ensure_dir(directory):
default_config_file = p.default_config_file
config_file = p.config_file
+config_yml = p.config_yml
pytrakt_file = p.pytrakt_file
env_file = p.env_file
log_file = p.log_file

Add config_yml property