diff options
author | Philip Van Hoof <philip@codeminded.be> | 2011-09-08 15:00:35 +0200 |
---|---|---|
committer | Martyn Russell <martyn@lanedo.com> | 2011-09-08 16:44:17 +0100 |
commit | 356107f64b09a0b2e1615c574687489b64140cd5 (patch) | |
tree | 1baad919fe02d4556fbc24d125f145a23b1794b0 | |
parent | 11ac174ec3b90c54abcc2b4cee792954a5f8f8e5 (diff) | |
download | tracker-356107f64b09a0b2e1615c574687489b64140cd5.tar.gz |
libtracker-miner: Add the file to which the symlinks point in don't-remove list
Fixes NB#281183.
-rw-r--r-- | 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 7a041d288..03e47176a 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, |