fix disc image saving for xbmc

pull/702/head
Luke Pulverenti 11 years ago
parent 28c252921f
commit 2b68dcd3c6

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

Loading…
Cancel
Save