mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-01 04:08:45 -05:00
fix(jellyfinscanner): conditionally assign the jellyfinMediaId and jellyfinMediaId4k (#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
This commit is contained in:
@@ -461,8 +461,9 @@ class JellyfinScanner {
|
|||||||
tmdbId: tvShow.id,
|
tmdbId: tvShow.id,
|
||||||
tvdbId: tvShow.external_ids.tvdb_id,
|
tvdbId: tvShow.external_ids.tvdb_id,
|
||||||
mediaAddedAt: new Date(metadata.DateCreated ?? ''),
|
mediaAddedAt: new Date(metadata.DateCreated ?? ''),
|
||||||
jellyfinMediaId: Id,
|
jellyfinMediaId: isAllStandardSeasons ? Id : undefined,
|
||||||
jellyfinMediaId4k: Id,
|
jellyfinMediaId4k:
|
||||||
|
isAll4kSeasons && this.enable4kShow ? Id : undefined,
|
||||||
status: isAllStandardSeasons
|
status: isAllStandardSeasons
|
||||||
? MediaStatus.AVAILABLE
|
? MediaStatus.AVAILABLE
|
||||||
: newSeasons.some(
|
: newSeasons.some(
|
||||||
|
|||||||
Reference in New Issue
Block a user