Skip to content

Commit

Permalink
Merge pull request #2052 from glensc/2050-reload
Browse files Browse the repository at this point in the history
Fix: Use ServerConfigFactory singleton
  • Loading branch information
glensc authored Sep 9, 2024
2 parents d8f34fd + e745478 commit 0e6989c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plextraktsync/commands/plex_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from rich.panel import Panel
from rich.prompt import Confirm, Prompt

from plextraktsync.config.ServerConfigFactory import ServerConfigFactory
from plextraktsync.decorators.flatten import flatten_list
from plextraktsync.factory import factory
from plextraktsync.style import error, prompt, success, title
Expand Down Expand Up @@ -221,7 +220,7 @@ def login(username: str, password: str):
else:
plex_account_token = account._token

sc = ServerConfigFactory()
sc = factory.server_config_factory
sc.add_server(
id=plex.machineIdentifier,
name=server.name,
Expand Down

0 comments on commit 0e6989c

Please sign in to comment.