Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to ignore or only allow specific players #37

Open
Blackilykat opened this issue Aug 27, 2024 · 2 comments
Open

Unable to ignore or only allow specific players #37

Blackilykat opened this issue Aug 27, 2024 · 2 comments

Comments

@Blackilykat
Copy link

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
Copy link
Owner

lazykern commented Sep 1, 2024

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants