Permalink
Browse files

adds support for inprogress in shows (kicks in if watchedcount > 0 an…

…d watchedcount < totalCounts)
  • Loading branch information...
1 parent 33a36f0 commit 5c57c76fc8836a3e3b57220cae5f56c65b3abc5b Jonathan Marshall committed Sep 1, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 xbmc/playlists/SmartPlayList.cpp
@@ -408,6 +408,7 @@ vector<Field> CSmartPlaylistRule::GetFields(const CStdString &type)
fields.push_back(FieldStudio);
fields.push_back(FieldMPAA);
fields.push_back(FieldDateAdded);
+ fields.push_back(FieldInProgress);
}
else if (type == "episodes")
{
@@ -723,6 +724,11 @@ CStdString CSmartPlaylistRule::GetWhereClause(const CDatabase &db, const CStdStr
if (m_field == FieldInProgress)
return "episodeview.idFile " + negate + " IN (select idFile from bookmark where type = 1)";
}
+ else if (strType == "tvshows")
+ {
+ if (m_field == FieldInProgress)
+ return GetField(FieldId, strType) + negate + " IN (select idShow from tvshowview where watchedcount > 0 AND watchedcount < totalCount)";
+ }
}
// now the query parameter

0 comments on commit 5c57c76

Please sign in to comment.