Open secu2 opened 3 years ago
I've just added a switch case to this library (haven't updated waybar-mpris to use it yet though), and it reads fine now. However, spotify doesn't support the MediaPlayer2.Player.Position
property, so there's no way of getting the position it seems. I'll fix it so it doesn't display the position at all.
I'm a user of your great waybar module waybar-mpris I currently face an error while using the module with the --position flag with the official spotify client.
I did some verification and the dbus interface returns an uint64 from spotify client metadata
mpris:length
while your code expects an int64Here is what my dbus interfaces returns from spotify :
The error happens with the casting here : https://github.com/hrfee/mpris2client/blob/244c4cd6a569dcb648bd45e959d106331dcf4175/mpris2.go#L218
Some more type checking might be necessary, do you have an idea of how it's possible to handle this ?