tags: Add artist and album names to the filter

Also decrement library count when deleting tracks.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2014-06-04 13:24:33 -04:00
parent 2f1d7a73ce
commit 851be80a7d
1 changed files with 3 additions and 1 deletions

View File

@ -165,7 +165,7 @@ Track :: Track(const std::string &f, Library *l)
Track :: ~Track()
{
//library->count--;
library->count--;
}
const std::string Track :: primary_key() const
@ -190,6 +190,8 @@ void Track :: read(File &f)
genre = genre_db.at(genre_id);
title_lower = filter :: add(title, id);
filter :: add(artist->name, id);
filter :: add(album->name, id);
library->count++;
set_length_str();
}