fixes #632 - Show yesterday's episodes in upcoming view

This commit is contained in:
Luke Pulverenti
2013-11-19 12:17:14 -05:00
parent 2b68dcd3c6
commit de339b8265
3 changed files with 32 additions and 8 deletions

View File

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