Compare commits

...

2 Commits

Author SHA1 Message Date
Fallenbagel
3bf04f2abd refactor: refactored 4k detection fix to be more consistent with how movie logic works 2023-03-17 04:32:27 +05:00
Fallenbagel
bc9017f54d fix: add better checks on 4k detection of series 2023-03-04 00:54:21 +05:00

View File

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