From 2bca86d0e2a5d28cac91df4f1ebc4dd9dd6ce8bf Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 26 Mar 2018 21:43:18 -0400 Subject: [PATCH] Fixed: Use original extension when saving metadata This should fix logos for #257 --- .../Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs b/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs index 61064f306..5f8d929c7 100644 --- a/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs +++ b/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs @@ -44,7 +44,7 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc return GetTrackMetadataFilename(trackFilePath); } - _logger.Debug("Unknown episode file metadata: {0}", metadataFile.RelativePath); + _logger.Debug("Unknown track file metadata: {0}", metadataFile.RelativePath); return Path.Combine(artist.Path, metadataFile.RelativePath); } @@ -228,7 +228,7 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc foreach (var image in artist.Images) { var source = _mediaCoverService.GetCoverPath(artist.Id, image.CoverType); - var destination = image.CoverType.ToString().ToLowerInvariant() + Path.GetExtension(source); + var destination = image.CoverType.ToString().ToLowerInvariant() + Path.GetExtension(image.Url); yield return new ImageFileResult(destination, source); }