added detail page indicator for missing
This commit is contained in:
parent
005b6c92aa
commit
0eec819ca7
|
@ -1075,7 +1075,7 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||||
double totalPercentPlayed = 0;
|
double totalPercentPlayed = 0;
|
||||||
|
|
||||||
// Loop through each recursive child
|
// 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());
|
var userdata = _userDataRepository.GetUserData(user.Id, child.GetUserDataKey());
|
||||||
|
|
||||||
|
|
|
@ -408,7 +408,7 @@ namespace MediaBrowser.Server.Implementations.Providers
|
||||||
|
|
||||||
return new[] { Path.Combine(seriesFolder, imageFilename) };
|
return new[] { Path.Combine(seriesFolder, imageFilename) };
|
||||||
}
|
}
|
||||||
|
|
||||||
return new[]
|
return new[]
|
||||||
{
|
{
|
||||||
Path.Combine(item.MetaLocation, "fanart" + extension)
|
Path.Combine(item.MetaLocation, "fanart" + extension)
|
||||||
|
@ -426,13 +426,6 @@ namespace MediaBrowser.Server.Implementations.Providers
|
||||||
|
|
||||||
if (type == ImageType.Primary)
|
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)
|
if (item is Season && item.IndexNumber.HasValue)
|
||||||
{
|
{
|
||||||
var seriesFolder = Path.GetDirectoryName(item.Path);
|
var seriesFolder = Path.GetDirectoryName(item.Path);
|
||||||
|
@ -460,7 +453,7 @@ namespace MediaBrowser.Server.Implementations.Providers
|
||||||
return new[] { GetSavePathForItemInMixedFolder(item, type, string.Empty, extension) };
|
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) };
|
return new[] { Path.Combine(item.MetaLocation, filename) };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -92,6 +92,9 @@
|
||||||
<Content Include="dashboard-ui\css\images\editor\lock.png">
|
<Content Include="dashboard-ui\css\images\editor\lock.png">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="dashboard-ui\css\images\editor\missing.png">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
<Content Include="dashboard-ui\css\images\editor\missingbackdrop.png">
|
<Content Include="dashboard-ui\css\images\editor\missingbackdrop.png">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user