diff options
author | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2010-09-27 00:22:17 +0300 |
---|---|---|
committer | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2010-10-18 23:44:49 +0300 |
commit | a4ece7935d48430a95519fc0a6c2b90d6d008f23 (patch) | |
tree | e234cfaf29893b5c6a91080227895dc61c5dc74a | |
parent | d8d7b54cdc2ce0d7e3e77b24436178583a5f0c52 (diff) | |
download | rygel-a4ece7935d48430a95519fc0a6c2b90d6d008f23.tar.gz |
tracker: Join item ID components by ',' rather than ':'
Use ',' intead of ':' to join SearchContainer's ID and item's URN in the
child item's ID. This fixes item queries for Tracker backend. This issue
has been there since commit 51e4fdb (Feb 19 2010) but it didn't realize
so far because the default slow search used to kick-in and save the day.
-rw-r--r-- | src/plugins/tracker/rygel-tracker-search-container.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/tracker/rygel-tracker-search-container.vala b/src/plugins/tracker/rygel-tracker-search-container.vala index 537af498..d04c9d11 100644 --- a/src/plugins/tracker/rygel-tracker-search-container.vala +++ b/src/plugins/tracker/rygel-tracker-search-container.vala @@ -164,11 +164,11 @@ public class Rygel.Tracker.SearchContainer : Rygel.MediaContainer { } public string create_child_id_for_urn (string urn) { - return this.id + ":" + urn; + return this.id + "," + urn; } private bool is_our_child (string id) { - return id.has_prefix (this.id + ":"); + return id.has_prefix (this.id + ","); } private async void get_children_count () { @@ -268,7 +268,7 @@ public class Rygel.Tracker.SearchContainer : Rygel.MediaContainer { // if item_id is invalid private string? get_item_info (string item_id, out string parent_id) { - var tokens = item_id.split (":", 2); + var tokens = item_id.split (",", 2); if (tokens[0] != null && tokens[1] != null) { parent_id = tokens[0]; |