[rhythmbox] rhythmbox-client: use album artist field for %aa and %aA
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] rhythmbox-client: use album artist field for %aa and %aA
- Date: Mon, 2 Sep 2019 11:57:11 +0000 (UTC)
commit 1316aed094febb23cd12b7ab6beb86dc62d778a4
Author: Jonathan Matthew <jonathan d14n org>
Date: Mon Sep 2 21:50:49 2019 +1000
rhythmbox-client: use album artist field for %aa and %aA
Closes: #1688
remote/dbus/rb-client.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/remote/dbus/rb-client.c b/remote/dbus/rb-client.c
index a9bfe6895..338b26d15 100644
--- a/remote/dbus/rb-client.c
+++ b/remote/dbus/rb-client.c
@@ -298,14 +298,18 @@ parse_pattern (const char *pattern, GHashTable *properties, gint64 elapsed, gboo
string = g_utf8_strdown (g_variant_get_string (value, NULL), -1);
break;
case 'a':
- value = g_hash_table_lookup (properties, "xesam:artist");
+ value = g_hash_table_lookup (properties, "xesam:albumArtist");
+ if (value == NULL)
+ value = g_hash_table_lookup (properties, "xesam:artist");
if (value) {
strv = g_variant_get_strv (value, NULL);
string = g_strdup (strv[0]);
}
break;
case 'A':
- value = g_hash_table_lookup (properties, "xesam:artist");
+ value = g_hash_table_lookup (properties, "xesam:albumArtist");
+ if (value == NULL)
+ value = g_hash_table_lookup (properties, "xesam:artist");
if (value) {
strv = g_variant_get_strv (value, NULL);
string = g_utf8_strdown (strv[0], -1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]