From 05690a72f81acb6a15fb5cafbcbee27104ef1cbe Mon Sep 17 00:00:00 2001 From: CyferShepard Date: Tue, 30 Jul 2024 08:52:11 +0200 Subject: [PATCH] feat: Update proxy.js to use Emby device images if IS_JELLYFIN is false --- backend/routes/proxy.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/routes/proxy.js b/backend/routes/proxy.js index 5fe4ca2..24cfde9 100644 --- a/backend/routes/proxy.js +++ b/backend/routes/proxy.js @@ -16,6 +16,9 @@ router.get("/web/assets/img/devices/", async (req, res) => { } let url = `${config.JF_HOST}/web/assets/img/devices/${devicename}.svg`; + if (config.IS_JELLYFIN == false) { + url = `https://raw.githubusercontent.com/MediaBrowser/Emby.Resources/master/images/devices/${devicename}.png`; + } axios .get(url, {