batch-rename-dialog: Replace '/' with '_' for metadata

Fixes #1749
This commit is contained in:
Anuraag Reddy Patllollu 2024-06-12 10:37:08 -04:00 committed by Anuraag Reddy Patllollu
parent e419ffb7bd
commit 23e41c5aef

View file

@ -939,10 +939,7 @@ on_cursor_callback (GObject *object,
break;
}
/* TODO: Figure out how to inform the user of why the metadata is
* unavailable when one or more contains the unallowed character "/"
*/
if (!current_metadata || g_strrstr (current_metadata, "/"))
if (!current_metadata)
{
remove_metadata (query_data,
metadata_type);
@ -975,6 +972,7 @@ on_cursor_callback (GObject *object,
else
{
file_metadata->metadata[metadata_type] = g_string_new (current_metadata);
g_string_replace (file_metadata->metadata[metadata_type], "/", "_", 0);
}
}
}