refactor: refactored 4k detection fix to be more consistent with how movie logic works

This commit is contained in:
Fallenbagel
2023-03-17 04:32:27 +05:00
parent bc9017f54d
commit 3bf04f2abd

View File

@@ -278,10 +278,7 @@ class JobJellyfinSync {
ExtendedEpisodeData.MediaSources?.some((MediaSource) => {
return MediaSource.MediaStreams.some((MediaStream) => {
if (MediaStream.Type === 'Video') {
if (
(MediaStream.Width ?? 0) >= 3840 &&
(MediaStream.Height ?? 0) >= 2160
) {
if ((MediaStream.Width ?? 0) >= 2000) {
total4k += episodeCount;
} else {
totalStandard += episodeCount;