diff --git a/PlexRequests.UI/Modules/AdminModule.cs b/PlexRequests.UI/Modules/AdminModule.cs index efe797f24..e48cd1fb7 100644 --- a/PlexRequests.UI/Modules/AdminModule.cs +++ b/PlexRequests.UI/Modules/AdminModule.cs @@ -404,9 +404,13 @@ namespace PlexRequests.UI.Modules return Response.AsJson(valid.SendJsonError()); } - //Lookup identifier - var server = PlexApi.GetServer(plexSettings.PlexAuthToken); - plexSettings.MachineIdentifier = server.Server.FirstOrDefault(x => x.AccessToken == plexSettings.PlexAuthToken)?.MachineIdentifier; + if (string.IsNullOrEmpty(plexSettings.MachineIdentifier)) + { + //Lookup identifier + var server = PlexApi.GetServer(plexSettings.PlexAuthToken); + plexSettings.MachineIdentifier = + server.Server.FirstOrDefault(x => x.AccessToken == plexSettings.PlexAuthToken)?.MachineIdentifier; + } var result = await PlexService.SaveSettingsAsync(plexSettings); diff --git a/PlexRequests.UI/Views/Admin/Plex.cshtml b/PlexRequests.UI/Views/Admin/Plex.cshtml index 67700e59f..c2ce7be25 100644 --- a/PlexRequests.UI/Views/Admin/Plex.cshtml +++ b/PlexRequests.UI/Views/Admin/Plex.cshtml @@ -87,21 +87,6 @@ - - @*
- -
- -
- - This is your Plex data directory location, if we cannot manually find it then you need to specify the location! See Here. - -
-
-
- -
-
*@
@@ -110,6 +95,13 @@
+
+ +
+ +
+
+