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:
parent
2f1d7a73ce
commit
851be80a7d
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue