mopidy/mopidy-mpris

Wrong types for properties

phako opened this issue · 8 comments

phako commented

(rygel:6812): GLib-GIO-WARNING **: 19:50:19.607: Received property Position with type i does not match expected type x in the expected interface

(rygel:6812): GLib-GIO-WARNING **: 19:50:19.608: Received property Metadata with type a{ss} does not match expected type a{sv} in the expected interface

See https://specifications.freedesktop.org/mpris-spec/latest/Player_Interface.html#Property:Position and https://specifications.freedesktop.org/mpris-spec/latest/Player_Interface.html#Property:Metadata

phako commented

This might actually be fixed, I seem to have a rather old version

jodal commented

I'd guess it has changed in the master branch which rewrites much of Mopidy-MPRIS.

As to why I haven't released 2.0.0, I don't remember. If you give it a spin and it works for you, I can get a release out.

jodal commented

I can confirm that this has been fixed in the master branch, which will be released as v2.0.0 soon.

For Position, see

<property name="Position" type="x" access="read"/>

For Metadata, see

<property name="Metadata" type="a{sv}" access="read"/>

jodal commented

Mopidy-MPRIS 2.0.0 has now been released, in case you are interested in verifying that this has been fixed.

phako commented

I finally managed to try it. There's something wrong with your entry-point. It should be /org/mpris/MediaPlayer2

https://specifications.freedesktop.org/mpris-spec/latest/#Entry-point

But the property issues are indeed gone

phako commented

Ah sorry, I was on my fork, not your repository

jodal commented

So all good? :-)

phako commented

Yup :)