aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Dto
diff options
context:
space:
mode:
authordkanada <dkanada@users.noreply.github.com>2020-09-27 19:07:57 +0900
committerGitHub <noreply@github.com>2020-09-27 19:07:57 +0900
commit63b49ff4d84a6c18d7db188435eeb9e429e6bfd0 (patch)
treed1067745875f4b5a0f5a9464ed5ce5a18bddb3e0 /Emby.Server.Implementations/Dto
parent800c03961281d4f2ee6d3d7c9d9c0db6f45f506a (diff)
parent9cdef5b57ce7afc1491c4a3cad64490e0d3652fe (diff)
Merge pull request #4204 from cvium/add_aspect_ratio_seriesprimary
Add series image aspect ratio when ep/season is missing an image
Diffstat (limited to 'Emby.Server.Implementations/Dto')
-rw-r--r--Emby.Server.Implementations/Dto/DtoService.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs
index 94cfed767..38f38ddbf 100644
--- a/Emby.Server.Implementations/Dto/DtoService.cs
+++ b/Emby.Server.Implementations/Dto/DtoService.cs
@@ -1139,6 +1139,7 @@ namespace Emby.Server.Implementations.Dto
if (episodeSeries != null)
{
dto.SeriesPrimaryImageTag = GetTagAndFillBlurhash(dto, episodeSeries, ImageType.Primary);
+ AttachPrimaryImageAspectRatio(dto, episodeSeries);
}
}
@@ -1185,6 +1186,7 @@ namespace Emby.Server.Implementations.Dto
if (series != null)
{
dto.SeriesPrimaryImageTag = GetTagAndFillBlurhash(dto, series, ImageType.Primary);
+ AttachPrimaryImageAspectRatio(dto, series);
}
}
}