eonpatapon / mpDris2

MPRIS V2.1 support for mpd
GNU General Public License v3.0
210 stars 46 forks source link

mpDris2 not displaying cover on notifications on Gnome 46 #164

Open niels0n opened 1 week ago

niels0n commented 1 week ago

Like the title says, even though I installed mutagen I have no cover on notifications. I have it though in the notification list, see screenshots below.

This is my configuration:

[Connection]
# You can also export $MPD_HOST and/or $MPD_PORT to change the server.
#host = localhost
#port = 6600
#password =

[Library]
music_dir = /home/andrea/Music/Library
cover_regex = ^(album|cover|\.?folder|front).*\.(gif|jpeg|jpg|png)$

[Bling]
mmkeys = True
notify = True
# Urgency of the notification: 0 for low, 1 for medium and 2 for high.
notify_urgency = 1

And this is the log from the systemd service:

● mpDris2.service - mpDris2 - Music Player Daemon D-Bus bridge
     Loaded: loaded (/usr/lib/systemd/user/mpDris2.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/user/service.d
             └─10-timeout-abort.conf
     Active: active (running) since Sat 2024-06-22 11:08:36 CEST; 5min ago
   Main PID: 4814 (mpDris2)
      Tasks: 4 (limit: 46631)
     Memory: 18.1M (peak: 19.1M)
        CPU: 107ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/mpDris2.service
             └─4814 /usr/bin/python3 /usr/bin/mpDris2 --use-journal

giu 22 11:08:36 e14 systemd[2365]: Starting mpDris2.service - mpDris2 - Music Player Daemon D-Bus bridge...
giu 22 11:08:36 e14 mpDris2[4814]: Using file:///home/andrea/Music/Library as music library path.
giu 22 11:08:36 e14 mpDris2[4814]: Using Mutagen to read covers from music files.
giu 22 11:08:36 e14 mpDris2[4814]: Failed to connect to GNOME Settings Daemon. Media keys won't work.
giu 22 11:08:36 e14 systemd[2365]: Started mpDris2.service - mpDris2 - Music Player Daemon D-Bus bridge.

This is how I see it from the notification list, beside the calendar:

Screenshot from 2024-06-22 11-14-39

And this is how I see the notifications.

Screenshot from 2024-06-22 11-14-53

EDIT: If that matters, that's all .mp3 files with embedded cover.

iconoclasthero commented 2 days ago

I was just wondering about embedded covers... Since my server's remote, the only way for access to covers is via nfs/sshfs if available. I created a webpage to list played songs and used album_art_base64=$(mpc readpicture "$songpath" | base64) to display covers. That script is slowly converting everything to use the mpd protocol/socket connection so I'm sure that would also be an option rather than relying on mpc.

Vast majority is flac ... most should have embedded pictures via picard if the pics were in MBDB to start.