Add SeriesPrimaryImageTag
This commit is contained in:
parent
9d7d8c3c94
commit
b043336977
|
@ -1052,6 +1052,13 @@ namespace MediaBrowser.Server.Implementations.Dto
|
|||
{
|
||||
dto.SeriesThumbImageTag = GetImageCacheTag(series, ImageType.Thumb, series.GetImage(ImageType.Thumb));
|
||||
}
|
||||
|
||||
var imagePath = series.PrimaryImagePath;
|
||||
|
||||
if (!string.IsNullOrEmpty(imagePath))
|
||||
{
|
||||
dto.SeriesPrimaryImageTag = GetImageCacheTag(series, ImageType.Primary, imagePath);
|
||||
}
|
||||
}
|
||||
|
||||
// Add SeasonInfo
|
||||
|
@ -1065,6 +1072,13 @@ namespace MediaBrowser.Server.Implementations.Dto
|
|||
dto.SeriesName = series.Name;
|
||||
dto.AirTime = series.AirTime;
|
||||
dto.SeriesStudio = series.Studios.FirstOrDefault();
|
||||
|
||||
var imagePath = series.PrimaryImagePath;
|
||||
|
||||
if (!string.IsNullOrEmpty(imagePath))
|
||||
{
|
||||
dto.SeriesPrimaryImageTag = GetImageCacheTag(series, ImageType.Primary, imagePath);
|
||||
}
|
||||
}
|
||||
|
||||
var game = item as Game;
|
||||
|
|
Loading…
Reference in New Issue
Block a user