From 1a3ead98dca6527b805800fb7f361730bf1a740c Mon Sep 17 00:00:00 2001 From: Schaka <2223171+Schaka@users.noreply.github.com> Date: Thu, 15 Feb 2024 15:58:15 +0100 Subject: [PATCH] [Jellyseerr] Fix property name --- .../github/schaka/janitorr/jellyseerr/JellyseerrRestService.kt | 2 +- .../com/github/schaka/janitorr/jellyseerr/requests/Media.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/github/schaka/janitorr/jellyseerr/JellyseerrRestService.kt b/src/main/kotlin/com/github/schaka/janitorr/jellyseerr/JellyseerrRestService.kt index 202cc94..fa7f8f5 100644 --- a/src/main/kotlin/com/github/schaka/janitorr/jellyseerr/JellyseerrRestService.kt +++ b/src/main/kotlin/com/github/schaka/janitorr/jellyseerr/JellyseerrRestService.kt @@ -49,7 +49,7 @@ class JellyseerrRestService( // Match between Radarr ID or Sonarr ID and the ID Jellyseerr stores for Radarr/Sonarr // TODO: Maybe grab the Jellyfin ID here to make deletion in Jellyfin easier down the line? - if (item.id == candidate.media.externalServiceSlug) { + if (item.id == candidate.media.externalServiceId) { return true } diff --git a/src/main/kotlin/com/github/schaka/janitorr/jellyseerr/requests/Media.kt b/src/main/kotlin/com/github/schaka/janitorr/jellyseerr/requests/Media.kt index c90042b..1411a6b 100644 --- a/src/main/kotlin/com/github/schaka/janitorr/jellyseerr/requests/Media.kt +++ b/src/main/kotlin/com/github/schaka/janitorr/jellyseerr/requests/Media.kt @@ -8,7 +8,7 @@ data class Media( val imdbId: String?, val tmdbId: Int?, val tvdbId: Int?, - val externalServiceSlug: Int?, + val externalServiceId: Int?, val jellyfinMediaId: String?, val updatedAt: String ) \ No newline at end of file