diff --git a/plextraktsync/config/ServerConfigFactory.py b/plextraktsync/config/ServerConfigFactory.py index a0d624fa286..3811107e59a 100644 --- a/plextraktsync/config/ServerConfigFactory.py +++ b/plextraktsync/config/ServerConfigFactory.py @@ -41,6 +41,10 @@ def load(self): def migrate(self): from plextraktsync.factory import factory config = factory.config + + if not config["PLEX_BASEURL"]: + return + self.add_server( name="default", urls=[ @@ -52,6 +56,7 @@ def migrate(self): self.save() config["PLEX_SERVER"] = "default" config.save() + logger = factory.logger logger.warning(f"Added default server to {self.config_path}")