feat: Update proxy.js to use Emby device images if IS_JELLYFIN is false

This commit is contained in:
CyferShepard
2024-07-30 08:52:11 +02:00
parent 40f307b39c
commit 05690a72f8

View File

@@ -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, {