[rygel] tracker: Skip filter if pattern substitute fails
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] tracker: Skip filter if pattern substitute fails
- Date: Wed, 24 Aug 2016 19:41:52 +0000 (UTC)
commit e269d1d360536d83bdc8215652327e6cdefaceb1
Author: Jens Georg <mail jensge org>
Date: Wed Aug 24 21:40:39 2016 +0200
tracker: Skip filter if pattern substitute fails
Signed-off-by: Jens Georg <mail jensge org>
.../tracker/rygel-tracker-selection-query.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-selection-query.vala
b/src/plugins/tracker/rygel-tracker-selection-query.vala
index 0859d65..0020c13 100644
--- a/src/plugins/tracker/rygel-tracker-selection-query.vala
+++ b/src/plugins/tracker/rygel-tracker-selection-query.vala
@@ -105,6 +105,12 @@ public class Rygel.Tracker.SelectionQuery : Query {
actual_uri = actual_uri.replace ("@MUSIC@", music_dir);
}
+ if (actual_uri.contains ("@PICTURES@") ||
+ actual_uri.contains ("@VIDEOS@") ||
+ actual_uri.contains ("@MUSIC@")) {
+ continue;
+ }
+
// protect against special directories expanding to $HOME
file = File.new_for_commandline_arg (actual_uri);
if (file.equal (home_dir)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]