Skip to content
This repository
Browse code

fix incorrect query on smartplaylists with a set rule

  • Loading branch information...
commit 15f444918b4eb5d4834346cd86cd03b7a036083b 1 parent b0f0f56
authored February 15, 2013

Showing 1 changed file with 0 additions and 2 deletions. Show diff stats Hide diff stats

  1. 2  xbmc/playlists/SmartPlayList.cpp
2  xbmc/playlists/SmartPlayList.cpp
@@ -882,8 +882,6 @@ CStdString CSmartPlaylistRule::GetWhereClause(const CDatabase &db, const CStdStr
882 882
         query = GetField(FieldId, strType) + negate + " IN (SELECT idMovie FROM countrylinkmovie JOIN country ON country.idCountry=countrylinkmovie.idCountry WHERE country.strCountry" + parameter + ")";
883 883
       else if ((m_field == FieldLastPlayed || m_field == FieldDateAdded) && (m_operator == OPERATOR_LESS_THAN || m_operator == OPERATOR_BEFORE || m_operator == OPERATOR_NOT_IN_THE_LAST))
884 884
         query = GetField(m_field, strType) + " IS NULL OR " + GetField(m_field, strType) + parameter;
885  
-      else if (m_field == FieldSet)
886  
-        query = GetField(FieldId, strType) + negate + " IN (SELECT idMovie FROM setlinkmovie JOIN sets ON sets.idSet=setlinkmovie.idSet WHERE sets.strSet" + parameter + ")";
887 885
       else if (m_field == FieldTag)
888 886
         query = GetField(FieldId, strType) + negate + " IN (SELECT idMedia FROM taglinks JOIN tag ON tag.idTag = taglinks.idTag WHERE tag.strTag" + parameter + " AND taglinks.media_type = 'movie')";
889 887
     }

0 notes on commit 15f4449

Please sign in to comment.
Something went wrong with that request. Please try again.