fix: improve hdr10+ detection
This commit is contained in:
2 files changed
+9
-3
No files matched your search
@@ -263,7 +263,9 @@ const EpisodeTitlePage = () => {
|
||||
(video) => video.VideoRangeType === "HDR10",
|
||||
);
|
||||
const checkHDR10Plus = videos.filter(
|
||||
(video) => video.VideoRangeType === "HDR10+",
|
||||
(video) =>
|
||||
video.VideoRangeType === "HDR10+" ||
|
||||
video.DisplayTitle?.toLocaleLowerCase().includes("hdr10+"),
|
||||
);
|
||||
const checkTrueHD = audios.filter((audio) =>
|
||||
audio.DisplayTitle?.toLocaleLowerCase().includes("truehd"),
|
||||
|
||||
@@ -290,10 +290,14 @@ const ItemDetail = () => {
|
||||
video.DisplayTitle?.toLocaleLowerCase().includes("720p"),
|
||||
);
|
||||
const checkHDR10 = videos.filter(
|
||||
(video) => video.VideoRangeType === "HDR10",
|
||||
(video) =>
|
||||
video.VideoRangeType === "HDR10" &&
|
||||
!video.DisplayTitle?.toLocaleLowerCase().includes("hdr10+"),
|
||||
);
|
||||
const checkHDR10Plus = videos.filter(
|
||||
(video) => video.VideoRangeType === "HDR10+",
|
||||
(video) =>
|
||||
video.VideoRangeType === "HDR10+" ||
|
||||
video.DisplayTitle?.toLocaleLowerCase().includes("hdr10+"),
|
||||
);
|
||||
const checkTrueHD = audios.filter((audio) =>
|
||||
audio.DisplayTitle?.toLocaleLowerCase().includes("truehd"),
|
||||
|
||||
Reference in new issue
Block a user