Browse Source

Add additional undefined check for mpris trackid

master
jeffvli 2 years ago
parent
commit
7c78e5be4e
  1. 2
      src/main.dev.js

2
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,

Loading…
Cancel
Save