diff --git a/server/entity/Media.ts b/server/entity/Media.ts index 19786e2b1..5d0e34621 100644 --- a/server/entity/Media.ts +++ b/server/entity/Media.ts @@ -139,7 +139,7 @@ class Media { @AfterLoad() public setServiceUrl(): void { if (this.mediaType === MediaType.MOVIE) { - if (this.serviceId !== null) { + if (this.serviceId !== null && this.externalServiceSlug !== null) { const settings = getSettings(); const server = settings.radarr.find( (radarr) => radarr.id === this.serviceId @@ -155,7 +155,7 @@ class Media { } } - if (this.serviceId4k !== null) { + if (this.serviceId4k !== null && this.externalServiceSlug4k !== null) { const settings = getSettings(); const server = settings.radarr.find( (radarr) => radarr.id === this.serviceId4k @@ -173,7 +173,7 @@ class Media { } if (this.mediaType === MediaType.TV) { - if (this.serviceId !== null) { + if (this.serviceId !== null && this.externalServiceSlug !== null) { const settings = getSettings(); const server = settings.sonarr.find( (sonarr) => sonarr.id === this.serviceId @@ -189,7 +189,7 @@ class Media { } } - if (this.serviceId4k !== null) { + if (this.serviceId4k !== null && this.externalServiceSlug4k !== null) { const settings = getSettings(); const server = settings.sonarr.find( (sonarr) => sonarr.id === this.serviceId4k diff --git a/src/components/Settings/SettingsJobs.tsx b/src/components/Settings/SettingsJobs.tsx index b8f1d3fec..bf891fc51 100644 --- a/src/components/Settings/SettingsJobs.tsx +++ b/src/components/Settings/SettingsJobs.tsx @@ -65,7 +65,7 @@ const SettingsJobs: React.FC = () => {