diff options
author | Kjetil Ørbekk <orbekk@pvv.ntnu.no> | 2008-08-13 14:44:15 +0200 |
---|---|---|
committer | Kjetil Ørbekk <orbekk@pvv.ntnu.no> | 2008-08-13 14:44:15 +0200 |
commit | 2ea2df0e490056f4760e0a275d8309171bf162b0 (patch) | |
tree | 322d2e7b9a214cbdd93e1a6e889a7c0406249c92 | |
parent | 7478ea2df55f3793da76386e1c56701ad36eea00 (diff) |
Changed format of filenames in /Tracks
-rw-r--r-- | src/mp3_subr.c | 2 | ||||
-rwxr-xr-x | src/mp3_vnops.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/mp3_subr.c b/src/mp3_subr.c index 0e16caf..1f69bb3 100644 --- a/src/mp3_subr.c +++ b/src/mp3_subr.c @@ -379,7 +379,7 @@ mp3_file_data_for_path(const char *path, void *data) { break; lh = mp3_lookup_start(0, fd, mp3_lookup_open, "SELECT filepath FROM song " - "WHERE (title||'.'||extension) LIKE ?"); + "WHERE (artistname||' - '||title||'.'||extension) LIKE ?"); if (lh == NULL) return (-EIO); mp3_lookup_insert(lh, title, LIST_DATATYPE_STRING); diff --git a/src/mp3_vnops.c b/src/mp3_vnops.c index d1ddf90..26f02a6 100755 --- a/src/mp3_vnops.c +++ b/src/mp3_vnops.c @@ -97,7 +97,8 @@ static int mp3_readdir (const char *path, void *buf, fuse_fill_dir_t filler, return (0); } else if (strcmp(path, "/Tracks") == 0) { lh = mp3_lookup_start(0, &fd, mp3_lookup_list, - "SELECT DISTINCT title ||'.'|| extension FROM song"); + "SELECT DISTINCT artistname||' - '||title||'.'||extension " + "FROM song"); mp3_lookup_finish(lh); return (0); } else if (strncmp(path, "/Albums", 7) == 0) { |