[tracker] libtracker-miner: Add the file to which the symlinks point in don't-remove list
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: Add the file to which the symlinks point in don't-remove list
- Date: Thu, 8 Sep 2011 13:26:53 +0000 (UTC)
commit ec407611ce2b86efa27dc7f2e6ff9bc02f7cc825
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Sep 8 15:00:35 2011 +0200
libtracker-miner: Add the file to which the symlinks point in don't-remove list
Fixes NB#281183.
src/libtracker-miner/tracker-albumart.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-albumart.c b/src/libtracker-miner/tracker-albumart.c
index 7a041d2..03e4717 100644
--- a/src/libtracker-miner/tracker-albumart.c
+++ b/src/libtracker-miner/tracker-albumart.c
@@ -74,7 +74,7 @@ on_query_finished (GObject *source_object,
(GDestroyNotify) NULL);
while (tracker_sparql_cursor_next (cursor, NULL, NULL)) {
- gchar *target = NULL;
+ gchar *target = NULL, *album_path = NULL;
const gchar *album, *artist;
album = tracker_sparql_cursor_get_string (cursor, 0, NULL);
@@ -87,6 +87,15 @@ on_query_finished (GObject *source_object,
&target, NULL);
g_hash_table_replace (table, target, target);
+
+ /* Also add the file to which the symlinks are made */
+ tracker_albumart_get_path (" ",
+ album,
+ "album", NULL,
+ &album_path, NULL);
+
+
+ g_hash_table_replace (table, album_path, album_path);
}
/* Perhaps we should have an internal list of albumart files that we made,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]