[nautilus/sam/tracker-3: 5/5] Fix batch renaming
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/sam/tracker-3: 5/5] Fix batch renaming
- Date: Tue, 18 Aug 2020 12:17:15 +0000 (UTC)
commit 3ab2f409815b4552e15a2f7fe1564c8931d8b7f4
Author: Sam Thursfield <sam afuera me uk>
Date: Tue Aug 18 14:14:25 2020 +0200
Fix batch renaming
This feature still doesn't work due to a bug in Tracker regarding
tracker:uri-is-parent(). See https://gitlab.gnome.org/GNOME/tracker/-/issues/235
src/nautilus-batch-rename-utilities.c | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/src/nautilus-batch-rename-utilities.c b/src/nautilus-batch-rename-utilities.c
index 2746cb083..5aa72f0d1 100644
--- a/src/nautilus-batch-rename-utilities.c
+++ b/src/nautilus-batch-rename-utilities.c
@@ -1057,21 +1057,21 @@ check_metadata_for_selection (NautilusBatchRenameDialog *dialog,
query = g_string_new ("SELECT "
"nfo:fileName(?file) "
- "nie:contentCreated(?file) "
- "year(nie:contentCreated(?file)) "
- "month(nie:contentCreated(?file)) "
- "day(nie:contentCreated(?file)) "
- "hours(nie:contentCreated(?file)) "
- "minutes(nie:contentCreated(?file)) "
- "seconds(nie:contentCreated(?file)) "
- "nfo:model(nfo:equipment(?file)) "
- "nmm:season(?file) "
- "nmm:episodeNumber(?file) "
- "nmm:trackNumber(?file) "
- "nmm:artistName(nmm:performer(?file)) "
- "nie:title(?file) "
- "nmm:albumTitle(nmm:musicAlbum(?file)) "
- "WHERE { ?file a nfo:FileDataObject. ?file nie:url ?url. ");
+ "nie:contentCreated(?content) "
+ "year(nie:contentCreated(?content)) "
+ "month(nie:contentCreated(?content)) "
+ "day(nie:contentCreated(?content)) "
+ "hours(nie:contentCreated(?content)) "
+ "minutes(nie:contentCreated(?content)) "
+ "seconds(nie:contentCreated(?content)) "
+ "nfo:model(nfo:equipment(?content)) "
+ "nmm:seasonNumber(?content) "
+ "nmm:episodeNumber(?content) "
+ "nmm:trackNumber(?content) "
+ "nmm:artistName(nmm:performer(?content)) "
+ "nie:title(?content) "
+ "nmm:title(nmm:musicAlbum(?content)) "
+ "WHERE { ?file a nfo:FileDataObject. ?file nie:url ?url. ?content nie:isStoredAs
?file. ");
parent_uri = nautilus_file_get_parent_uri (NAUTILUS_FILE (selection->data));
@@ -1116,7 +1116,7 @@ check_metadata_for_selection (NautilusBatchRenameDialog *dialog,
selection_metadata = g_list_reverse (selection_metadata);
- g_string_append (query, "} ORDER BY ASC(nie:contentCreated(?file))");
+ g_string_append (query, "} ORDER BY ASC(nie:contentCreated(?content))");
connection = nautilus_tracker_get_miner_fs_connection (&error);
if (!connection)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]