InputUsername / rescrobbled

MPRIS music scrobbler daemon
GNU General Public License v3.0
227 stars 13 forks source link

can't scrobble Spotube #127

Open jtmr05 opened 9 months ago

jtmr05 commented 9 months ago

According to the README on this repo, in order to add a player's id to the whitelist one needs to find its MPRIS id beforehand. However, Spotube in particular seems to generate a new one each time it runs. For instance:

$ playerctl --list-all
Spotube.instance4761

The number at the end seems to match its PID. Any possible workaround?

InputUsername commented 8 months ago

Hi, I'm assuming you've tried it and the whitelist doesn't work? IIRC playerctl actually reports the player "bus name", and rescrobbled already should strip the .instance123 part from there, so just whitelisting Spotube should work. If it doesn't, you could also try whitelisting by the actual MPRIS id.

Let me know if you have any issues.

jtmr05 commented 8 months ago

Whitelisting as Spotube, with or without the instance specific suffix, doesn't seem to work. Using the MPRIS id (which I assume is org.mpris.MediaPlayer2.Spotube) doesn't help either.

InputUsername commented 8 months ago

How exactly are you defining the whitelist in your config.toml?

Also I found https://github.com/KRTirtho/spotube/issues/811 which relates to Spotube's MPRIS id, are you running the latest Spotube version? If so then I guess this is a bug.

jtmr05 commented 8 months ago

The whitelist looks like this: player-whitelist = ["ncspot", "vlc", "mpv", "org.mpris.MediaPlayer2.Spotube"]

I'm running Spotube version 3.2.0. According to that link, the issue described there should be fixed on this version.