Skip to content

Commit

Permalink
fix: add better checks on 4k detection of series
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallenbagel committed Mar 3, 2023
1 parent ee23de6 commit bc9017f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions server/job/jellyfinsync/index.ts
Expand Up @@ -278,11 +278,14 @@ class JobJellyfinSync {
ExtendedEpisodeData.MediaSources?.some((MediaSource) => {
return MediaSource.MediaStreams.some((MediaStream) => {
if (MediaStream.Type === 'Video') {
if (MediaStream.Width ?? 0 < 2000) {
if (
(MediaStream.Width ?? 0) >= 3840 &&
(MediaStream.Height ?? 0) >= 2160
) {
total4k += episodeCount;
} else {
totalStandard += episodeCount;
}
} else {
total4k += episodeCount;
}
});
});
Expand Down

0 comments on commit bc9017f

Please sign in to comment.