From a276c51ce749d0a42cc84da137cad47524d0971a Mon Sep 17 00:00:00 2001 From: fallenbagel <98979876+Fallenbagel@users.noreply.github.com> Date: Mon, 15 Apr 2024 23:03:27 +0500 Subject: [PATCH] refactor: apply review suggestions --- server/api/jellyfin.ts | 2 +- src/i18n/locale/en.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/api/jellyfin.ts b/server/api/jellyfin.ts index 522121b7..cd7fb1cf 100644 --- a/server/api/jellyfin.ts +++ b/server/api/jellyfin.ts @@ -193,7 +193,7 @@ class JellyfinAPI { // this only affects LDAP users try { const mediaFolders = await this.axios.get( - `/Users/${this.userId}/Views` + `/Users/${this.userId ?? 'Me'}/Views` ); return this.mapLibraries(mediaFolders.data.Items); diff --git a/src/i18n/locale/en.json b/src/i18n/locale/en.json index 86be73e1..ef467278 100644 --- a/src/i18n/locale/en.json +++ b/src/i18n/locale/en.json @@ -946,9 +946,9 @@ "components.Settings.jellyfinlibrariesDescription": "The libraries {mediaServerName} scans for titles. Click the button below if no libraries are listed.", "components.Settings.jellyfinsettings": "{mediaServerName} Settings", "components.Settings.jellyfinsettingsDescription": "Configure the settings for your {mediaServerName} server. {mediaServerName} scans your {mediaServerName} libraries to see what content is available.", - "jellyfinSyncFailedNoLibrariesFound": "No libraries were found", - "jellyfinSyncFailedAutomaticGroupedFolders": "Custom authentication with Automatic Library Grouping not supported", - "jellyfinSyncFailedGenericError": "Something went wrong while syncing libraries", + "components.Settings.jellyfinSyncFailedNoLibrariesFound": "No libraries were found", + "components.Settings.jellyfinSyncFailedAutomaticGroupedFolders": "Custom authentication with Automatic Library Grouping not supported", + "components.Settings.jellyfinSyncFailedGenericError": "Something went wrong while syncing libraries", "components.Settings.librariesRemaining": "Libraries Remaining: {count}", "components.Settings.manualscan": "Manual Library Scan", "components.Settings.manualscanDescription": "Normally, this will only be run once every 24 hours. Overseerr will check your Plex server's recently added more aggressively. If this is your first time configuring Plex, a one-time full manual library scan is recommended!",