Pass name to PlexServerConfig creation
MODIFY
plextraktsync/config/ServerConfig.py
plextraktsync/config/ServerConfig.py
@@ -16,7 +16,7 @@ def __init__(self):
def get_server(self, name: str):
self.load()
try:
- return PlexServerConfig(**self.servers[name])
+ return PlexServerConfig(name=name, **self.servers[name])
except KeyError:
raise RuntimeError(f"Server with name {name} is not defined")

Pass name to PlexServerConfig creation