[rygel] media-export: No need for fuzzy search
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: No need for fuzzy search
- Date: Sat, 14 Aug 2010 23:33:01 +0000 (UTC)
commit 67d5a72e709b8c00b0704bfbcf9db345048fd63c
Author: Jens Georg <mail jensge org>
Date: Sat Aug 14 16:02:40 2010 +0300
media-export: No need for fuzzy search
We define the UPnP classes so we can search for the exact classes
.../rygel-media-export-query-container.vala | 6 +-----
.../rygel-media-export-root-container.vala | 4 ++--
2 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-query-container.vala b/src/plugins/media-export/rygel-media-export-query-container.vala
index 6d7723a..f3c66a6 100644
--- a/src/plugins/media-export/rygel-media-export-query-container.vala
+++ b/src/plugins/media-export/rygel-media-export-query-container.vala
@@ -208,11 +208,7 @@ internal class Rygel.MediaExport.QueryContainer : DBContainer {
var exp = new RelationalExpression ();
var op1 = op1_.replace (PREFIX, "");
exp.operand1 = Uri.unescape_string (op1);
- if (exp.operand1 == "upnp:class") {
- exp.op = SearchCriteriaOp.DERIVED_FROM;
- } else {
- exp.op = SearchCriteriaOp.EQ;
- }
+ exp.op = SearchCriteriaOp.EQ;
exp.operand2 = Uri.unescape_string (op2);
if (this.expression != null) {
var exp2 = new LogicalExpression ();
diff --git a/src/plugins/media-export/rygel-media-export-root-container.vala b/src/plugins/media-export/rygel-media-export-root-container.vala
index 798b912..792b8cf 100644
--- a/src/plugins/media-export/rygel-media-export-root-container.vala
+++ b/src/plugins/media-export/rygel-media-export-root-container.vala
@@ -342,10 +342,10 @@ public class Rygel.MediaExport.RootContainer : Rygel.MediaExport.DBContainer {
private void add_default_virtual_folders () {
try {
this.add_virtual_containers_for_class (_("Music"),
- "object.item.audioItem",
+ "object.item.audioItem.musicTrack",
virtual_folders_music);
this.add_virtual_containers_for_class (_("Pictures"),
- "object.item.imageItem");
+ "object.item.imageItem.photo");
this.add_virtual_containers_for_class (_("Videos"),
"object.item.videoItem");
} catch (Error error) {};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]