From 7c78e5be4e718386babe8e93344191e48ae0af83 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Tue, 28 Feb 2023 01:37:21 -0800 Subject: [PATCH] Add additional undefined check for mpris trackid --- src/main.dev.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.dev.js b/src/main.dev.js index 464cf99..3cd3281 100644 --- a/src/main.dev.js +++ b/src/main.dev.js @@ -249,7 +249,7 @@ if (isLinux()) { } mprisPlayer.metadata = { - 'mpris:trackid': arg?.id ? mprisPlayer.objectPath(`track/${arg.id?.replace('-', '')}`) : '', + 'mpris:trackid': arg?.id ? mprisPlayer.objectPath(`track/${arg?.id?.replace('-', '')}`) : '', 'mpris:length': arg.duration ? Math.round((arg.duration || 0) * 1e6) : null, 'mpris:artUrl': arg.image.includes('placeholder') ? null : arg.image, 'xesam:title': arg.title || null,