From f2aec8c3823b9afd9da2226bb7d9f3c8ca1a8197 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 11 Dec 2013 18:30:41 -0500 Subject: [PATCH] update xbmc music video image saving --- .../Providers/ImageSaver.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/MediaBrowser.Server.Implementations/Providers/ImageSaver.cs b/MediaBrowser.Server.Implementations/Providers/ImageSaver.cs index 8d88b66a0..49194ba8d 100644 --- a/MediaBrowser.Server.Implementations/Providers/ImageSaver.cs +++ b/MediaBrowser.Server.Implementations/Providers/ImageSaver.cs @@ -472,6 +472,11 @@ namespace MediaBrowser.Server.Implementations.Providers if (imageIndex.Value == 0) { + if (item.IsInMixedFolder) + { + return new[] { GetSavePathForItemInMixedFolder(item, type, "fanart", extension) }; + } + if (season != null && item.IndexNumber.HasValue) { var seriesFolder = season.SeriesPath; @@ -493,6 +498,11 @@ namespace MediaBrowser.Server.Implementations.Providers var outputIndex = imageIndex.Value; + if (item.IsInMixedFolder) + { + return new[] { GetSavePathForItemInMixedFolder(item, type, "fanart" + outputIndex.ToString(UsCulture), extension) }; + } + var extraFanartFilename = GetBackdropSaveFilename(item.BackdropImagePaths, "fanart", "fanart", outputIndex); return new[] @@ -526,7 +536,7 @@ namespace MediaBrowser.Server.Implementations.Providers return new[] { Path.Combine(seasonFolder, imageFilename) }; } - if (item.IsInMixedFolder) + if (item.IsInMixedFolder || item is MusicVideo) { return new[] { GetSavePathForItemInMixedFolder(item, type, string.Empty, extension) }; }