Closed yaflow-droid closed 2 years ago
Spotify is giving me mpris:length
in type t
(uint64) instead of x
which is against spec. I can work around this by allowing that type to be an arg to the function and generalizing the -
operand to work between any number types.
is there a workaround that can be applied to the playerctl cli as is? i'd be willing to try and help with this issue otherwise, but - fair warning - am quite inexperienced when it comes to contribution/collaboration.
Sure just make this work with type t
.
The player I am using is spotify.
When trying to execute the command
playerctl metadata --format="{{duration(mpris:length)}} -p spotify"
, I'm getting this error:Could not execute command: function position can only be called on int64 values
I also tried
playerctl metadata --format={{duration(mpris:length - position)}} -p spotify
and I'm getting this errorCould not execute command: Got unsuported operand types for -: 't' and 'x'