Fixed: Use original extension when saving metadata

This should fix logos for #257
This commit is contained in:
Qstick 2018-03-26 21:43:18 -04:00
parent 9a50b69e8c
commit 2bca86d0e2
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}