[rhythmbox] rhythmbox-client: make --set-rating work (bug #677318)



commit dcf67f0c8003aecc3c34628558526aa244379a57
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sat Jun 2 12:05:15 2012 +1000

    rhythmbox-client: make --set-rating work (bug #677318)
    
    Use the right property name for the playing song URL and build
    the SetEntryProperties call arguments properly.

 remote/dbus/rb-client.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/remote/dbus/rb-client.c b/remote/dbus/rb-client.c
index 20260e7..00507f7 100644
--- a/remote/dbus/rb-client.c
+++ b/remote/dbus/rb-client.c
@@ -509,9 +509,9 @@ rate_song (GDBusProxy *mpris, gdouble song_rating)
 		return;
 	}
 
-	v = g_hash_table_lookup (properties, "xesam:uri");
+	v = g_hash_table_lookup (properties, "xesam:url");
 	if (v == NULL) {
-		rb_debug ("can't set rating, no uri");
+		rb_debug ("can't set rating, no url");
 		return;
 	}
 
@@ -523,7 +523,7 @@ rate_song (GDBusProxy *mpris, gdouble song_rating)
 				     "/org/gnome/Rhythmbox3/RhythmDB",
 				     "org.gnome.Rhythmbox3.RhythmDB",
 				     "SetEntryProperties",
-				     g_variant_new ("(sa{sv})", v, g_variant_builder_end (&props)),
+				     g_variant_new ("(sa{sv})", g_variant_get_string (v, NULL), &props),
 				     NULL,
 				     G_DBUS_CALL_FLAGS_NONE,
 				     -1,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]