lazykern / mprisence

A Discord Rich Presence client for MPRIS-compatible media players with support for album art.
MIT License
20 stars 1 forks source link

Unable to ignore or only allow specific players #37

Open Blackilykat opened 2 months ago

Blackilykat commented 2 months ago

I tried to make mrpisence ignore my web browser, but in all my attempts all players got the ignore setting from the default value

Here's all my active players during the attempt

$ playerctl --all-players metadata --format "{{ playerName }}: {{ title }}"
quodlibet: CYBERNETIC HEART
plasma-browser-integration: lofi hip hop radio 📚 - beats to relax/study to
firefox: lofi hip hop radio 📚 - beats to relax/study to - YouTube

In this first attempt, I tried to make it ignore firefox and the browser integration, but it still showed up in my rich presence after a restart

[player.quodlibet]
ignore = false

[player.default]
ignore = false

[player.firefox]
ignore = true

[player.plasma-browser-integration]
ignore = true

In this second attempt, I tried to make it only accept my music player, but nothing showed up in my rich presence when it was supposed to

[player.quodlibet]
ignore = false

[player.default]
ignore = true

[player.firefox]
ignore = true

[player.plasma-browser-integration]
ignore = true
lazykern commented 2 months ago

Hi! In this case, some player name doesn't match what the mpris library see. For example, fire fox is called Mozilla firefox instead of firefox Please update mprisence to version 0.5.0 and use mprisence player list to see the full player name

Found 3 players
- Mozilla zen-alpha
- Mozilla firefox
- Spotify : https://open.spotify.com/track/2x11pNVaWQxBosvjEmE4zN

Then add it to your config

[player."Mozilla firefox"]
ignore = true

Sadly that the mpris library PlayerFinder doesn't see quodlibet so this application couldn't get the metadata and show the rich presence.

Blackilykat commented 2 months ago

Hi! In this case, some player name doesn't match what the mpris library see. For example, fire fox is called Mozilla firefox instead of firefox Please update mprisence to version 0.5.0 and use mprisence player list to see the full player name

I updated, running the command shows these players but I still can't get the config to ignore firefox. I don't think this is the case, but it might have to do with the plasma browser integration program

$ mprisence player list
Found 4 players
- Mozilla zen-alpha
- Mozilla Firefox : https://www.youtube.com/watch?v=AfgPPJL6Y44&list=PLSCZsQa9VSCf4dGJL_0U1wt2UaPhUbTqB&index=5
- Mozilla Firefox : https://www.youtube.com/watch?v=AfgPPJL6Y44&list=PLSCZsQa9VSCf4dGJL_0U1wt2UaPhUbTqB&index=5
- Quod Libet : file:///home/blackilykat/Music/Gideon/2024%20-%20Fun%20for%20You/Gideon%20-%20Fun%20for%20You.flac
[player."Quod Libet"]
ignore = false

[player.default]
ignore = false

[player."Mozilla Firefox"]
ignore = true

[player."Mozilla zen-alpha"]
ignore = true

Sadly that the mpris library PlayerFinder doesn't see quodlibet so this application couldn't get the metadata and show the rich presence.

What? I've been using mprisence with quod libet just fine