diff options
author | 2009-12-30 19:23:24 +0100 | |
---|---|---|
committer | 2009-12-30 19:23:24 +0100 | |
commit | 816b2d30ae921bd8348f467c987a45fc3b65f527 (patch) | |
tree | 49bd330ad34cfc83b4116aeae3af9170f563baa9 | |
parent | c6d490fb6674263dbefe3cfb493cf5f230cde32c (diff) |
exluded cuesheet metadata from pl_search_process
-rw-r--r-- | playlist.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -66,6 +66,12 @@ pl_free (void) { while (playlist_head[PL_MAIN]) { pl_remove (playlist_head[PL_MAIN]); } + if (playlist_current_row[PL_MAIN] >= pl_count[PL_MAIN]) { + playlist_current_row[PL_MAIN] = pl_count[PL_MAIN]-1; + } + if (playlist_current_row[PL_SEARCH] >= pl_count[PL_SEARCH]) { + playlist_current_row[PL_SEARCH] = pl_count[PL_SEARCH]-1; + } } static const uint8_t * @@ -1914,7 +1920,8 @@ pl_search_process (const char *text) { if (*text) { for (metaInfo_t *m = it->meta; m; m = m->next) { // if (strcasestr (m->value, text)) { - if (utfcasestr (m->value, text)) { + if (strcasecmp (m->key, "cuesheet") && utfcasestr (m->value, text)) { + //fprintf (stderr, "%s -> %s match (%s.%s)\n", text, m->value, it->fname, m->key); // add to list it->next[PL_SEARCH] = NULL; if (playlist_tail[PL_SEARCH]) { |