tweaked xbmc image saving

This commit is contained in:
Luke Pulverenti 2013-10-16 10:22:26 -04:00
parent 722c4289a2
commit 28041bf435
2 changed files with 3 additions and 42 deletions

View File

@ -243,8 +243,7 @@ namespace MediaBrowser.Providers
// Support plex/xbmc convention // Support plex/xbmc convention
if (image == null && item is Series) if (image == null && item is Series)
{ {
image = GetImage(item, args, "show") ?? image = GetImage(item, args, "show");
GetImage(item, args, "season-all-poster");
} }
// Support plex/xbmc convention // Support plex/xbmc convention
@ -306,11 +305,7 @@ namespace MediaBrowser.Providers
if (image == null) if (image == null)
{ {
// Supprt xbmc conventions // Supprt xbmc conventions
if (item is Series) if (item is Season && item.IndexNumber.HasValue)
{
image = GetImage(item, args, "season-all-banner");
}
else if (item is Season && item.IndexNumber.HasValue)
{ {
var seasonMarker = item.IndexNumber.Value == 0 var seasonMarker = item.IndexNumber.Value == 0
? "-specials" ? "-specials"
@ -351,11 +346,7 @@ namespace MediaBrowser.Providers
if (image == null) if (image == null)
{ {
// Supprt xbmc conventions // Supprt xbmc conventions
if (item is Series) if (item is Season && item.IndexNumber.HasValue)
{
image = GetImage(item, args, "season-all-landscape");
}
else if (item is Season && item.IndexNumber.HasValue)
{ {
var seasonMarker = item.IndexNumber.Value == 0 var seasonMarker = item.IndexNumber.Value == 0
? "-specials" ? "-specials"
@ -400,16 +391,6 @@ namespace MediaBrowser.Providers
PopulateBackdrops(item, args, backdropFiles, "background", "background-"); PopulateBackdrops(item, args, backdropFiles, "background", "background-");
PopulateBackdrops(item, args, backdropFiles, "art", "art-"); PopulateBackdrops(item, args, backdropFiles, "art", "art-");
if (item is Series)
{
var image = GetImage(item, args, "season-all-fanart");
if (image != null)
{
backdropFiles.Add(image.FullName);
}
}
if (item is Season && item.IndexNumber.HasValue) if (item is Season && item.IndexNumber.HasValue)
{ {
var seasonMarker = item.IndexNumber.Value == 0 var seasonMarker = item.IndexNumber.Value == 0

View File

@ -396,11 +396,6 @@ namespace MediaBrowser.Server.Implementations.Providers
if (imageIndex.Value == 0) if (imageIndex.Value == 0)
{ {
if (item is Series)
{
return new[] { Path.Combine(item.Path, "season-all-fanart" + extension) };
}
if (item is Season && item.IndexNumber.HasValue) if (item is Season && item.IndexNumber.HasValue)
{ {
var seriesFolder = Path.GetDirectoryName(item.Path); var seriesFolder = Path.GetDirectoryName(item.Path);
@ -431,11 +426,6 @@ namespace MediaBrowser.Server.Implementations.Providers
if (type == ImageType.Primary) if (type == ImageType.Primary)
{ {
if (item is Series)
{
return new[] { Path.Combine(item.Path, "season-all-poster" + extension) };
}
if (item is Season && item.IndexNumber.HasValue) if (item is Season && item.IndexNumber.HasValue)
{ {
var seriesFolder = Path.GetDirectoryName(item.Path); var seriesFolder = Path.GetDirectoryName(item.Path);
@ -469,11 +459,6 @@ namespace MediaBrowser.Server.Implementations.Providers
if (type == ImageType.Banner) if (type == ImageType.Banner)
{ {
if (item is Series)
{
return new[] { Path.Combine(item.Path, "season-all-banner" + extension) };
}
if (item is Season && item.IndexNumber.HasValue) if (item is Season && item.IndexNumber.HasValue)
{ {
var seriesFolder = Path.GetDirectoryName(item.Path); var seriesFolder = Path.GetDirectoryName(item.Path);
@ -490,11 +475,6 @@ namespace MediaBrowser.Server.Implementations.Providers
if (type == ImageType.Thumb) if (type == ImageType.Thumb)
{ {
if (item is Series)
{
return new[] { Path.Combine(item.Path, "season-all-landscape" + extension) };
}
if (item is Season && item.IndexNumber.HasValue) if (item is Season && item.IndexNumber.HasValue)
{ {
var seriesFolder = Path.GetDirectoryName(item.Path); var seriesFolder = Path.GetDirectoryName(item.Path);