Permalink
Browse files

fix "Play in party mode" for smartplaylists

  • Loading branch information...
1 parent 315d4fe commit 42c6c6fe3e9e78a59611a88bb29f493115c37f66 @Montellese Montellese committed May 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/PartyModeManager.cpp
View
4 xbmc/PartyModeManager.cpp
@@ -113,7 +113,7 @@ bool CPartyModeManager::Enable(PartyModeContext context /*= PARTYMODECONTEXT_MUS
{
set<CStdString> playlists;
if ( playlistLoaded )
- m_strCurrentFilterMusic = playlist.GetWhereClause(db, playlists);
+ m_strCurrentFilterMusic = "WHERE " + playlist.GetWhereClause(db, playlists);
CLog::Log(LOGINFO, "PARTY MODE MANAGER: Registering filter:[%s]", m_strCurrentFilterMusic.c_str());
m_iMatchingSongs = (int)db.GetSongIDs(m_strCurrentFilterMusic, songIDs);
@@ -142,7 +142,7 @@ bool CPartyModeManager::Enable(PartyModeContext context /*= PARTYMODECONTEXT_MUS
{
set<CStdString> playlists;
if ( playlistLoaded )
- m_strCurrentFilterVideo = playlist.GetWhereClause(db, playlists);
+ m_strCurrentFilterVideo = "WHERE " + playlist.GetWhereClause(db, playlists);
CLog::Log(LOGINFO, "PARTY MODE MANAGER: Registering filter:[%s]", m_strCurrentFilterVideo.c_str());
m_iMatchingSongs += (int)db.GetMusicVideoIDs(m_strCurrentFilterVideo, songIDs2);

0 comments on commit 42c6c6f

Please sign in to comment.