fix disc image saving for xbmc

This commit is contained in:
Luke Pulverenti 2013-11-19 11:44:53 -05:00
parent 28c252921f
commit 2b68dcd3c6

View File

@ -344,6 +344,9 @@ namespace MediaBrowser.Server.Implementations.Providers
case ImageType.Art: case ImageType.Art:
filename = "clearart"; filename = "clearart";
break; break;
case ImageType.Disc:
filename = item is MusicAlbum ? "cdart" : "disc";
break;
case ImageType.Primary: case ImageType.Primary:
filename = item is Episode ? Path.GetFileNameWithoutExtension(item.Path) : "folder"; filename = item is Episode ? Path.GetFileNameWithoutExtension(item.Path) : "folder";
break; break;
@ -478,6 +481,11 @@ namespace MediaBrowser.Server.Implementations.Providers
if (type == ImageType.Primary) 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) if (item is Season && item.IndexNumber.HasValue)
{ {
var seriesFolder = Path.GetDirectoryName(item.Path); var seriesFolder = Path.GetDirectoryName(item.Path);