From d8698d1c28c393d4666af707bb806f687ae4c631 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 16 Feb 2026 09:18:21 -0800 Subject: [PATCH] Fixed: Ensure trailing slash is removed from drive letters when updating Plex Media Server Closes #8414 --- .../Notifications/Plex/Server/PlexServerService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Notifications/Plex/Server/PlexServerService.cs b/src/NzbDrone.Core/Notifications/Plex/Server/PlexServerService.cs index ceff60865..4d2a9f226 100644 --- a/src/NzbDrone.Core/Notifications/Plex/Server/PlexServerService.cs +++ b/src/NzbDrone.Core/Notifications/Plex/Server/PlexServerService.cs @@ -141,8 +141,9 @@ private void UpdateSectionPath(string seriesRelativePath, PlexSection section, P var separator = location.Path.Contains('\\') ? "\\" : "/"; var locationRelativePath = seriesRelativePath.Replace("\\", separator).Replace("/", separator); - // Plex location paths trim trailing extraneous separator characters, so it doesn't need to be trimmed - var pathToUpdate = $"{location.Path}{separator}{locationRelativePath}"; + // Plex location paths trim trailing extraneous separator characters, + // unless it's a Windows drive letter (S:\) that needs to be trimmed. + var pathToUpdate = $"{location.Path.TrimEnd(separator)}{separator}{locationRelativePath}"; _logger.Debug("Updating section location, {0}", location.Path); _plexServerProxy.Update(section.Id, pathToUpdate, settings);