Skip to content

Commit

Permalink
Add recording rule filter to ignore episodes
Browse files Browse the repository at this point in the history
I think this fits well with the other series related filters. Expcept
my use case is to avoid series when searching for actors. The idea is
to only record movies, talk shows and the like. But if in doubt (aka
empty category_type) record it.
  • Loading branch information
dekarl committed Sep 19, 2015
1 parent 970bf5c commit c98c445
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions mythtv/libs/libmythtv/dbcheck.cpp
Expand Up @@ -3196,6 +3196,18 @@ NULL
return false;
}

if (dbver == "1340")
{
const char *updates[] = {
// Add filter to ignore episodes (e.g. in a person search)
"REPLACE INTO recordfilter (filterid, description, clause, newruledefault) "
" VALUES (11, 'No episodes', 'program.category_type <> ''series''', 0)",
NULL
};
if (!performActualUpdate(updates, "1341", dbver))
return false;
}

return true;
}

Expand Down

0 comments on commit c98c445

Please sign in to comment.