Skip to content

Commit

Permalink
fix(jellyfinscanner): conditionally assign the jellyfinMediaId and je…
Browse files Browse the repository at this point in the history
…llyfinMediaId4k (#686)

Previously `jellyfinMediaId4k` was being assigned even if 4k server was not setup or even if 4k
content were not present. This fixes it by conditionally assigning the jellyfinMediaId and
JellyfinMediaId4k

fix #681
  • Loading branch information
Fallenbagel authored Mar 13, 2024
1 parent c2e8771 commit 530be42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/lib/scanners/jellyfin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,9 @@ class JellyfinScanner {
tmdbId: tvShow.id,
tvdbId: tvShow.external_ids.tvdb_id,
mediaAddedAt: new Date(metadata.DateCreated ?? ''),
jellyfinMediaId: Id,
jellyfinMediaId4k: Id,
jellyfinMediaId: isAllStandardSeasons ? Id : undefined,
jellyfinMediaId4k:
isAll4kSeasons && this.enable4kShow ? Id : undefined,
status: isAllStandardSeasons
? MediaStatus.AVAILABLE
: newSeasons.some(
Expand Down

0 comments on commit 530be42

Please sign in to comment.