Skip to content

Commit

Permalink
CSmartPlaylist: improve genre rule for artists
Browse files Browse the repository at this point in the history
  • Loading branch information
Montellese committed Oct 8, 2012
1 parent be31b8e commit 86a8f57
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions xbmc/playlists/SmartPlayList.cpp
Expand Up @@ -810,6 +810,13 @@ CStdString CSmartPlaylistRule::GetWhereClause(const CDatabase &db, const CStdStr
else if (m_field == FieldAlbumArtist)
query = GetField(FieldId, strType) + negate + " IN (SELECT album_artist.idAlbum FROM album_artist, artist WHERE album_artist.idArtist = artist.idArtist AND artist.strArtist" + parameter + ")";
}
else if (strType == "artists")
{
table = "artistview";

if (m_field == FieldGenre)
query = GetField(FieldId, strType) + negate + " IN (SELECT song_artist.idArtist FROM song_artist, song_genre, genre WHERE song_artist.idSong = song_genre.idSong AND song_genre.idGenre = genre.idGenre AND genre.strGenre" + parameter + ")";
}
else if (strType == "movies")
{
table = "movieview";
Expand Down

0 comments on commit 86a8f57

Please sign in to comment.