diff options
Diffstat (limited to 'music.c')
-rw-r--r-- | music.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -43,6 +43,10 @@ gboolean music_scan(struct directory *directory) { directory->files = g_slist_prepend(directory->files, f); g_debug("added file %s to %s", entry, directory->path); + struct tag *tag = tag_read(fullpath); + if(tag) { + f->tag = tag; + } } else if(S_ISDIR(st.st_mode)) { struct directory *d = g_new0(struct directory, 1); d->path = g_build_filename(directory->path, entry, NULL); |