mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 10:29:01 -07:00
image cleanup fixes
This commit is contained in:
parent
56d7bbd78f
commit
6d3849d98d
@ -138,6 +138,21 @@ namespace MediaBrowser.Server.Implementations.ScheduledTasks
|
|||||||
images = images.Concat(item.ScreenshotImagePaths);
|
images = images.Concat(item.ScreenshotImagePaths);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (item.LocalTrailers != null)
|
||||||
|
{
|
||||||
|
images = item.LocalTrailers.Aggregate(images, (current, subItem) => current.Concat(GetPathsInUse(subItem)));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (item.ThemeSongs != null)
|
||||||
|
{
|
||||||
|
images = item.ThemeSongs.Aggregate(images, (current, subItem) => current.Concat(GetPathsInUse(subItem)));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (item.ThemeVideos != null)
|
||||||
|
{
|
||||||
|
images = item.ThemeVideos.Aggregate(images, (current, subItem) => current.Concat(GetPathsInUse(subItem)));
|
||||||
|
}
|
||||||
|
|
||||||
var video = item as Video;
|
var video = item as Video;
|
||||||
|
|
||||||
if (video != null && video.Chapters != null)
|
if (video != null && video.Chapters != null)
|
||||||
@ -145,22 +160,11 @@ namespace MediaBrowser.Server.Implementations.ScheduledTasks
|
|||||||
images = images.Concat(video.Chapters.Where(i => !string.IsNullOrEmpty(i.ImagePath)).Select(i => i.ImagePath));
|
images = images.Concat(video.Chapters.Where(i => !string.IsNullOrEmpty(i.ImagePath)).Select(i => i.ImagePath));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.LocalTrailers != null)
|
|
||||||
{
|
|
||||||
foreach (var subItem in item.LocalTrailers)
|
|
||||||
{
|
|
||||||
images = images.Concat(GetPathsInUse(subItem));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var movie = item as Movie;
|
var movie = item as Movie;
|
||||||
|
|
||||||
if (movie != null && movie.SpecialFeatures != null)
|
if (movie != null && movie.SpecialFeatures != null)
|
||||||
{
|
{
|
||||||
foreach (var subItem in movie.SpecialFeatures)
|
images = movie.SpecialFeatures.Aggregate(images, (current, subItem) => current.Concat(GetPathsInUse(subItem)));
|
||||||
{
|
|
||||||
images = images.Concat(GetPathsInUse(subItem));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return images;
|
return images;
|
||||||
|
Loading…
Reference in New Issue
Block a user