rhythmbox r5805 - in trunk: . remote/dbus
- From: jmatthew svn gnome org
- To: svn-commits-list gnome org
- Subject: rhythmbox r5805 - in trunk: . remote/dbus
- Date: Wed, 9 Jul 2008 10:45:00 +0000 (UTC)
Author: jmatthew
Date: Wed Jul 9 10:45:00 2008
New Revision: 5805
URL: http://svn.gnome.org/viewvc/rhythmbox?rev=5805&view=rev
Log:
2008-07-09 Jonathan Matthew <jonathan d14n org>
patch by: Raul Soriano <GatoLoko gmail com>
* remote/dbus/rb-client.c: (parse_pattern):
Add '%st' substitution parameter, giving the streaming song title.
Fixes #541725.
Modified:
trunk/ChangeLog
trunk/remote/dbus/rb-client.c
Modified: trunk/remote/dbus/rb-client.c
==============================================================================
--- trunk/remote/dbus/rb-client.c (original)
+++ trunk/remote/dbus/rb-client.c Wed Jul 9 10:45:00 2008
@@ -172,6 +172,7 @@
* %tS -- track artist sortname (lowercase)
* %td -- track duration
* %te -- track elapsed time
+ * %st -- stream title
*/
static char *
parse_pattern (const char *pattern, GHashTable *properties, guint elapsed)
@@ -334,6 +335,23 @@
break;
+ case 's':
+ /*
+ * Stream tag
+ */
+ switch (*++p) {
+ case 't':
+ value = g_hash_table_lookup (properties, "rb:stream-song-title");
+ if (value)
+ string = g_value_dup_string (value);
+ break;
+ default:
+ string = g_strdup_printf ("%%s%c", *p);
+ }
+
+ break;
+
+
default:
string = g_strdup_printf ("%%%c", *p);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]