From 83c381a0707fdcbf31f2ee101c5fa405edd9bec6 Mon Sep 17 00:00:00 2001 From: Jam <1347620+JamsRepos@users.noreply.github.com> Date: Sun, 21 Apr 2024 15:20:18 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=A9=B9=20:bug:=20Fixed=20issue=20w?= =?UTF-8?q?here=20Jellyseerr=20could=20not=20be=20selected=20for=20Emby=20?= =?UTF-8?q?servers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wizarr-backend/wizarr_backend/api/routes/settings_api.py | 4 +--- .../src/modules/settings/components/Forms/RequestForm.vue | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/wizarr-backend/wizarr_backend/api/routes/settings_api.py b/apps/wizarr-backend/wizarr_backend/api/routes/settings_api.py index d5ebc4899..21808937b 100644 --- a/apps/wizarr-backend/wizarr_backend/api/routes/settings_api.py +++ b/apps/wizarr-backend/wizarr_backend/api/routes/settings_api.py @@ -89,14 +89,12 @@ def put(self): if value == "plex": Requests.delete().where(Requests.service == "jellyseerr").execute() - elif value == "jellyfin": + elif value == "jellyfin" or value == "emby": Requests.delete().where(Requests.service == "overseerr").execute() - return response, 200 - @api.route('/') @api.doc(security=["jsonWebToken", "cookieAuth"]) class SettingsAPI(Resource): diff --git a/apps/wizarr-frontend/src/modules/settings/components/Forms/RequestForm.vue b/apps/wizarr-frontend/src/modules/settings/components/Forms/RequestForm.vue index 6f052b8d4..a0dc0ad81 100644 --- a/apps/wizarr-frontend/src/modules/settings/components/Forms/RequestForm.vue +++ b/apps/wizarr-frontend/src/modules/settings/components/Forms/RequestForm.vue @@ -64,7 +64,7 @@ export default defineComponent({ label: 'Jellyseerr', value: 'jellyseerr', attrs: { - disabled: this.settings.server_type !== 'jellyfin', + disabled: this.settings.server_type !== 'jellyfin' && this.settings.server_type !== 'emby', }, }, {