Repository: navidrome/navidrome

Issue #1862: Wrong/missing 'album' metadata exposed to DBus
Created: 2022-09-06T13:54:33Z
Description
The Navidrome web UI provides the browser with some metadata on what is currently being played. On most Linux desktops, these metadata are then exposed to DBus, and I can then query them with something like playerctl. Only, it seems the wrong 'album' metadata is given to the browser, as its value is always the same as the 'title' (or missing with Chromium).
Expected Behaviour
The correct 'album' should be exposed.
Steps to reproduce

Play a song in the web UI
Get the exposed metadata: playerctl metadata
See wrong 'album' value

Platform information

Navidrome version: 0.47.5 (86fe1e3)
Browser and version: Firefox Nightly 106.0a1 (2022-09-04) and Chromium 105.0.5195.52
Operating System: Debian Bullseye

Additional information
Here are some examples:
Track: Welcome To The Circus
Album: AfterLife
Artist: Five Finger Death Punch
Correct metadata on Deezer:
$ playerctl metadata
firefox mpris:trackid             '/org/mpris/MediaPlayer2/firefox'
firefox xesam:title               Welcome To The Circus
firefox xesam:album               AfterLife
firefox xesam:artist              Five Finger Death Punch
firefox mpris:artUrl              file:///home/skia/.mozilla/firefox/firefox-mpris/247540_4.png

Same track on Navidrome:
On Firefox:
$ playerctl metadata
firefox mpris:trackid             '/org/mpris/MediaPlayer2/firefox'
firefox xesam:title               Welcome to the Circus
firefox xesam:album               Welcome to the Circus
firefox xesam:artist              Five Finger Death Punch
firefox mpris:artUrl              file:///home/skia/.mozilla/firefox/firefox-mpris/247540_3.png

On Chromium:
$ playerctl metadata
chromium mpris:length              30014688
chromium mpris:trackid             '/org/chromium/MediaPlayer2/TrackList/TrackDD5935F36D78E40D0EE39BCA3102F34A'
chromium xesam:artist              Five Finger Death Punch
chromium xesam:title               Welcome To The Circus

Duplicate issue #1863: Wrong/missing 'album' metadata exposed to DBus
Created: 2022-09-06T13:58:43Z
Description
The Navidrome web UI provides the browser with some metadata on what is currently being played. On most Linux desktops, these metadata are then exposed to DBus, and I can then query them with something like playerctl. Only, it seems the wrong 'album' metadata is given to the browser, as its value is always the same as the 'title' (or missing with Chromium).
Expected Behaviour
The correct 'album' should be exposed.
Steps to reproduce

Play a song in the web UI
Get the exposed metadata: playerctl metadata
See wrong 'album' value

Platform information

Navidrome version: 0.47.5 (86fe1e3)
Browser and version: Firefox Nightly 106.0a1 (2022-09-04) and Chromium 105.0.5195.52
Operating System: Debian Bullseye

Additional information
Here are some examples:
Track: Welcome To The Circus
Album: AfterLife
Artist: Five Finger Death Punch
Correct metadata on Deezer:
$ playerctl metadata
firefox mpris:trackid             '/org/mpris/MediaPlayer2/firefox'
firefox xesam:title               Welcome To The Circus
firefox xesam:album               AfterLife
firefox xesam:artist              Five Finger Death Punch
firefox mpris:artUrl              file:///home/skia/.mozilla/firefox/firefox-mpris/247540_4.png

Same track on Navidrome:
On Firefox:
$ playerctl metadata
firefox mpris:trackid             '/org/mpris/MediaPlayer2/firefox'
firefox xesam:title               Welcome to the Circus
firefox xesam:album               Welcome to the Circus
firefox xesam:artist              Five Finger Death Punch
firefox mpris:artUrl              file:///home/skia/.mozilla/firefox/firefox-mpris/247540_3.png

On Chromium:
$ playerctl metadata
chromium mpris:length              30014688
chromium mpris:trackid             '/org/chromium/MediaPlayer2/TrackList/TrackDD5935F36D78E40D0EE39BCA3102F34A'
chromium xesam:artist              Five Finger Death Punch
chromium xesam:title               Welcome To The Circus

Closing comment (2022-09-06T14:56:44Z): grmbl Github
duplicate #1862