GNOME Bugzilla – Bug 665997
Not xesam:userRating in MPRIS metadata
Last modified: 2012-01-08 15:08:51 UTC
With the MPRIS plugin enabled, Banshee 2.2.1 doesn't return the xesam:userRating in the metadata properties of Player interface. By comparison, Rhythmbox is returning it as a float between 0 and 10 (3 stars being 6.0000)
Created attachment 204117 [details] [review] mpris user rating I found nothing about this on official spec: http://www.mpris.org/2.1/spec/ But I found this on the wiki of xmms2... http://xmms2.org/wiki/MPRIS_Metadata Anyway, I do not know if it is officially part of the spec but here is the small patch to add it... For the scale nothing seems official so we can choose our scale, I guess.
The scale should be between 0 and 1. As Banshee as 5 stars, it means 0.2 for each (that's also how Rhythmbox handles it).
Comment on attachment 204117 [details] [review] mpris user rating Thanks for the patch Olivier ! I committed a modified version: adjusting the scale to be 0.0...1.0, and casting the value to double (dbus-sharp doesn't like floats). Please remember to make patches with "git format-patch", it makes it easier and faster to apply.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.