mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 00:35:26 +03:00
add MediaInfo to improve media analysis for video files
This commit is contained in:
@@ -1102,17 +1102,22 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
|
||||
if (movie != null)
|
||||
{
|
||||
var specialFeatureCount = movie.SpecialFeatureIds.Count;
|
||||
if (fields.Contains(ItemFields.TmdbCollectionName))
|
||||
{
|
||||
dto.TmdbCollectionName = movie.TmdbCollectionName;
|
||||
}
|
||||
}
|
||||
|
||||
var hasSpecialFeatures = item as IHasSpecialFeatures;
|
||||
|
||||
if (hasSpecialFeatures != null)
|
||||
{
|
||||
var specialFeatureCount = hasSpecialFeatures.SpecialFeatureIds.Count;
|
||||
|
||||
if (specialFeatureCount > 0)
|
||||
{
|
||||
dto.SpecialFeatureCount = specialFeatureCount;
|
||||
}
|
||||
|
||||
if (fields.Contains(ItemFields.TmdbCollectionName))
|
||||
{
|
||||
dto.TmdbCollectionName = movie.TmdbCollectionName;
|
||||
}
|
||||
}
|
||||
|
||||
// Add EpisodeInfo
|
||||
@@ -1146,8 +1151,6 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
dto.AirTime = series.AirTime;
|
||||
dto.Status = series.Status;
|
||||
|
||||
dto.SpecialFeatureCount = series.SpecialFeatureIds.Count;
|
||||
|
||||
dto.SeasonCount = series.SeasonCount;
|
||||
|
||||
if (fields.Contains(ItemFields.Settings))
|
||||
|
||||
Reference in New Issue
Block a user