mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 22:43:07 +03:00
Added poor man's multi-file movie support
This commit is contained in:
@@ -142,9 +142,15 @@ namespace MediaBrowser.Server.Implementations.ScheduledTasks
|
||||
|
||||
var video = item as Video;
|
||||
|
||||
if (video != null && video.Chapters != null)
|
||||
if (video != null)
|
||||
{
|
||||
images = images.Concat(video.Chapters.Where(i => !string.IsNullOrEmpty(i.ImagePath)).Select(i => i.ImagePath));
|
||||
if (video.Chapters != null)
|
||||
{
|
||||
images = images.Concat(video.Chapters.Where(i => !string.IsNullOrEmpty(i.ImagePath)).Select(i => i.ImagePath));
|
||||
}
|
||||
|
||||
var additionalParts = _itemRepo.GetItems(video.AdditionalPartIds).ToList();
|
||||
images = additionalParts.Aggregate(images, (current, subItem) => current.Concat(GetPathsInUse(subItem)));
|
||||
}
|
||||
|
||||
var movie = item as Movie;
|
||||
|
||||
Reference in New Issue
Block a user