Skip to content

Commit

Permalink
feat(settings): stores jellyfin/emby server name in the settings (#763)
Browse files Browse the repository at this point in the history
Stores jellyfin/emby(?) server name in the settings file. This might come in handy in the future
once simultaneous multi-server sync is implemented.
  • Loading branch information
Fallenbagel authored May 26, 2024
1 parent 650c339 commit 7a5e8d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/routes/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ authRoutes.post('/jellyfin', async (req, res, next) => {
userType: UserType.JELLYFIN,
});

const serverName = await jellyfinserver.getServerName();

settings.jellyfin.name = serverName;
settings.jellyfin.hostname = body.hostname ?? '';
settings.jellyfin.serverId = account.User.ServerId;
settings.save();
Expand Down

0 comments on commit 7a5e8d6

Please sign in to comment.