Commit 4c4046e1 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MediaLibrary: Also include genres search in the result aggregate

parent 60fb1f07
......@@ -46,6 +46,7 @@ namespace medialibrary
{
std::vector<AlbumPtr> albums;
std::vector<ArtistPtr> artists;
std::vector<GenrePtr> genres;
MediaSearchAggregate media;
std::vector<PlaylistPtr> playlists;
};
......
......@@ -465,6 +465,7 @@ medialibrary::SearchAggregate MediaLibrary::search( const std::string& pattern )
medialibrary::SearchAggregate res;
res.albums = searchAlbums( pattern );
res.artists = searchArtists( pattern );
res.genres = searchGenre( pattern );
res.media = searchMedia( pattern );
res.playlists = searchPlaylists( pattern );
return res;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment