save photo album images as folder.ext

This commit is contained in:
Luke Pulverenti 2016-02-05 21:13:36 -05:00
parent 16145380d9
commit 78a90a4884
2 changed files with 7 additions and 2 deletions

View File

@ -176,7 +176,7 @@ namespace MediaBrowser.LocalMetadata.Images
"default"
};
if (item is MusicAlbum || item is MusicArtist)
if (item is MusicAlbum || item is MusicArtist || item is Photo)
{
// these prefer folder
names.Insert(0, "poster");

View File

@ -375,7 +375,12 @@ namespace MediaBrowser.Providers.Manager
}
string filename;
var folderName = item is MusicAlbum || item is MusicArtist || (_config.Configuration.ImageSavingConvention == ImageSavingConvention.Legacy && saveLocally) ? "folder" : "poster";
var folderName = item is MusicAlbum ||
item is MusicArtist ||
item is PhotoAlbum ||
(saveLocally && _config.Configuration.ImageSavingConvention == ImageSavingConvention.Legacy) ?
"folder" :
"poster";
switch (type)
{