mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 17:24:46 +03:00
Added poor man's multi-file movie support
This commit is contained in:
@@ -183,7 +183,7 @@ namespace MediaBrowser.Controller.Dto
|
||||
}
|
||||
|
||||
dto.OriginalPrimaryImageAspectRatio = size.Width / size.Height;
|
||||
|
||||
|
||||
var supportedEnhancers = Kernel.Instance.ImageManager.ImageEnhancers.Where(i =>
|
||||
{
|
||||
try
|
||||
@@ -239,7 +239,7 @@ namespace MediaBrowser.Controller.Dto
|
||||
dto.LockedImages = item.LockedImages;
|
||||
dto.EnableInternetProviders = !item.DontFetchMeta;
|
||||
}
|
||||
|
||||
|
||||
if (fields.Contains(ItemFields.Budget))
|
||||
{
|
||||
dto.Budget = item.Budget;
|
||||
@@ -264,7 +264,7 @@ namespace MediaBrowser.Controller.Dto
|
||||
{
|
||||
dto.Tags = item.Tags;
|
||||
}
|
||||
|
||||
|
||||
if (fields.Contains(ItemFields.ProductionLocations))
|
||||
{
|
||||
dto.ProductionLocations = item.ProductionLocations;
|
||||
@@ -441,6 +441,8 @@ namespace MediaBrowser.Controller.Dto
|
||||
dto.VideoFormat = video.VideoFormat;
|
||||
dto.IsoType = video.IsoType;
|
||||
|
||||
dto.PartCount = video.AdditionalPartIds.Count + 1;
|
||||
|
||||
if (fields.Contains(ItemFields.Chapters) && video.Chapters != null)
|
||||
{
|
||||
dto.Chapters = video.Chapters.Select(c => GetChapterInfoDto(c, item)).ToList();
|
||||
|
||||
Reference in New Issue
Block a user