added detail page indicator for missing

This commit is contained in:
Luke Pulverenti 2013-10-17 16:59:46 -04:00
parent 005b6c92aa
commit 0eec819ca7
3 changed files with 6 additions and 10 deletions

View File

@ -1075,7 +1075,7 @@ namespace MediaBrowser.Server.Implementations.Dto
double totalPercentPlayed = 0;
// Loop through each recursive child
foreach (var child in folder.GetRecursiveChildren(user, i => !i.IsFolder))
foreach (var child in folder.GetRecursiveChildren(user, i => !i.IsFolder && i.LocationType != LocationType.Virtual))
{
var userdata = _userDataRepository.GetUserData(user.Id, child.GetUserDataKey());

View File

@ -426,13 +426,6 @@ namespace MediaBrowser.Server.Implementations.Providers
if (type == ImageType.Primary)
{
if (item is Series)
{
var imageFilename = "poster" + extension;
return new[] { Path.Combine(item.Path, imageFilename) };
}
if (item is Season && item.IndexNumber.HasValue)
{
var seriesFolder = Path.GetDirectoryName(item.Path);
@ -460,7 +453,7 @@ namespace MediaBrowser.Server.Implementations.Providers
return new[] { GetSavePathForItemInMixedFolder(item, type, string.Empty, extension) };
}
var filename = Path.GetFileNameWithoutExtension(item.Path) + "-poster" + extension;
var filename = "poster" + extension;
return new[] { Path.Combine(item.MetaLocation, filename) };
}

View File

@ -92,6 +92,9 @@
<Content Include="dashboard-ui\css\images\editor\lock.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="dashboard-ui\css\images\editor\missing.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="dashboard-ui\css\images\editor\missingbackdrop.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>