From 3b896e901147a52b05e529aa695f78cbe5e73272 Mon Sep 17 00:00:00 2001 From: Lawrence Date: Tue, 30 Oct 2018 10:02:30 +0000 Subject: [PATCH] Fixed: Trim filename from Kodi movie path before sending library scan request. (#3097) --- src/NzbDrone.Core/Notifications/Xbmc/JsonApiProvider.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Notifications/Xbmc/JsonApiProvider.cs b/src/NzbDrone.Core/Notifications/Xbmc/JsonApiProvider.cs index b253cad5e..59f5a23e4 100644 --- a/src/NzbDrone.Core/Notifications/Xbmc/JsonApiProvider.cs +++ b/src/NzbDrone.Core/Notifications/Xbmc/JsonApiProvider.cs @@ -1,9 +1,11 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using NLog; using NzbDrone.Core.Notifications.Xbmc.Model; using NzbDrone.Core.Movies; +using NzbDrone.Common.Disk; +using System.IO; namespace NzbDrone.Core.Notifications.Xbmc { @@ -85,6 +87,7 @@ namespace NzbDrone.Core.Notifications.Xbmc if (moviePath != null) { + moviePath = new OsPath(moviePath).Directory.FullPath.TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar); _logger.Debug("Updating movie {0} (Path: {1}) on XBMC host: {2}", movie, moviePath, settings.Address); }