summaryrefslogtreecommitdiff
path: root/plugins/gme
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gme')
-rw-r--r--plugins/gme/cgme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gme/cgme.c b/plugins/gme/cgme.c
index 5b6a436f..8eb6d8d3 100644
--- a/plugins/gme/cgme.c
+++ b/plugins/gme/cgme.c
@@ -339,12 +339,12 @@ cgme_insert (DB_playItem_t *after, const char *fname) {
while (ext >= fname && *ext != '.') {
ext--;
}
- it->filetype = NULL;
if (*ext == '.') {
ext++;
for (int i = 0; plugin.exts[i]; i++) {
if (!strcasecmp (ext, plugin.exts[i])) {
- it->filetype = plugin.exts[i];
+ deadbeef->pl_add_meta (it, ":FILETYPE", plugin.exts[i]);
+ break;
}
}
}