aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dbUtils.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c
index b713b2a8b..a93a30e8f 100644
--- a/src/dbUtils.c
+++ b/src/dbUtils.c
@@ -247,17 +247,21 @@ static int tagItemFoundAndMatches(Song * song, int type, char *str)
{
int i;
- if (type == LOCATE_TAG_FILE_TYPE) {
+ if (type == LOCATE_TAG_FILE_TYPE || type == LOCATE_TAG_ANY_TYPE) {
if (0 == strcmp(str, getSongUrl(song)))
return 1;
+ if (type == LOCATE_TAG_FILE_TYPE)
+ return 0;
}
if (!song->tag)
return 0;
for (i = 0; i < song->tag->numOfItems; i++) {
- if (song->tag->items[i].type != type)
+ if (type != LOCATE_TAG_ANY_TYPE &&
+ song->tag->items[i].type != type) {
continue;
+ }
if (0 == strcmp(str, song->tag->items[i].value))
return 1;