diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-29 03:14:33 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-29 03:14:33 -0700 |
commit | c7930c993e4624e4e6d9a50cdea448b432a2bf05 (patch) | |
tree | c58c28b08485d6b1e0e2fe3ac40cc8c6fa2ce668 /src/dbUtils.c | |
parent | c4772b46eedc41cbe40678be1c02f31d24117b5e (diff) | |
download | mpd-c7930c993e4624e4e6d9a50cdea448b432a2bf05.tar.gz mpd-c7930c993e4624e4e6d9a50cdea448b432a2bf05.tar.xz mpd-c7930c993e4624e4e6d9a50cdea448b432a2bf05.zip |
allow searching for albums with an empty tag
tfing wrote:
> I have quite some files with an empty album tag as they do not come
> from a particular album.
>
> If I want to look for those files and browse them, this happens:
> :: nc localhost 6600
> OK MPD 0.12.0
> find album ""
> ACK [2@0] {find} too few arguments for "find"
>
> I'd like to be able to browse those files in a client like gmpc.
> So these 2 items would have to be developed:
> - list album should report that some files have an empty tag
> - it should be possible to search for an empty tag with the find command
Patch-by: Marc Pavot
ref: http://musicpd.org/mantis/view.php?id=464
Diffstat (limited to 'src/dbUtils.c')
-rw-r--r-- | src/dbUtils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c index 1ecb9f608..fbade8012 100644 --- a/src/dbUtils.c +++ b/src/dbUtils.c @@ -295,8 +295,10 @@ static void visitTag(int fd, struct strset *set, for (i = 0; i < tag->numOfItems; i++) { if (tag->items[i]->type == tagType) { strset_add(set, tag->items[i]->value); + return; } } + strset_add(set, ""); } struct list_tags_data { |