aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-11-19 12:17:14 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-11-19 12:17:14 -0500
commitde339b8265f0e0da7771b02cb9d00c40dad0163f (patch)
tree8d0d7b1da17560e683046585f079c17bb8a7efb7 /MediaBrowser.Server.Implementations
parent2b68dcd3c6903ce562beef4f0bb4dc02b4444ad8 (diff)
fixes #632 - Show yesterday's episodes in upcoming view
Diffstat (limited to 'MediaBrowser.Server.Implementations')
-rw-r--r--MediaBrowser.Server.Implementations/Providers/ImageSaver.cs13
1 files changed, 6 insertions, 7 deletions
diff --git a/MediaBrowser.Server.Implementations/Providers/ImageSaver.cs b/MediaBrowser.Server.Implementations/Providers/ImageSaver.cs
index 418400311..d9ee9e219 100644
--- a/MediaBrowser.Server.Implementations/Providers/ImageSaver.cs
+++ b/MediaBrowser.Server.Implementations/Providers/ImageSaver.cs
@@ -481,11 +481,6 @@ namespace MediaBrowser.Server.Implementations.Providers
if (type == ImageType.Primary)
{
- if (item is MusicAlbum || item is Artist || item is MusicArtist)
- {
- return new[] { Path.Combine(item.Path, "folder" + extension) };
- }
-
if (item is Season && item.IndexNumber.HasValue)
{
var seriesFolder = Path.GetDirectoryName(item.Path);
@@ -513,8 +508,12 @@ namespace MediaBrowser.Server.Implementations.Providers
return new[] { GetSavePathForItemInMixedFolder(item, type, string.Empty, extension) };
}
- var filename = "poster" + extension;
- return new[] { Path.Combine(item.MetaLocation, filename) };
+ if (item is MusicAlbum || item is Artist || item is MusicArtist)
+ {
+ return new[] { Path.Combine(item.MetaLocation, "folder" + extension) };
+ }
+
+ return new[] { Path.Combine(item.MetaLocation, "poster" + extension) };
}
if (type == ImageType.Banner)