From 86a8f57d894fca09e0e6059d92d026277112c092 Mon Sep 17 00:00:00 2001 From: montellese Date: Fri, 10 Aug 2012 11:27:04 +0200 Subject: [PATCH] CSmartPlaylist: improve genre rule for artists --- xbmc/playlists/SmartPlayList.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xbmc/playlists/SmartPlayList.cpp b/xbmc/playlists/SmartPlayList.cpp index dfe0d06f330cd..b0203a8127e10 100644 --- a/xbmc/playlists/SmartPlayList.cpp +++ b/xbmc/playlists/SmartPlayList.cpp @@ -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";