Media Center Master community forums

Creating Custom Filtering Rules
Page 1 of 1

Author:  doug2h [ September 13th, 2015, 3:49 pm ]
Post subject:  Creating Custom Filtering Rules

Pete wrote:
Documentation : Available rule modes:
  • all (default)
  • any

Available rule types:
  • filter (or 'menu')
  • parser (or 'downloadparser' or 'download parser')

Available operators:
  • contains
  • doesnotcontain
  • is
  • isnot
  • startswith
  • doesnotstartwith
  • endswith
  • doesnotendwith
  • lessthan
  • greaterthan
  • after
  • before

Available fields:
  • rule (or 'rules')
  • title
  • year
  • genre
  • studio
  • score (IMDb or otherwise user-rated/voted score)
  • contentrating (or 'content rating')
  • quality
  • width (or 'videowidth' or 'video width')
  • height (or 'videoheight' or 'video height')
  • path
  • folder (or 'file', or 'fileorfolder', or 'file or folder', or 'folderorfile', or 'folder or file')
  • budget (unavailable: only in my developer copy, currently)
  • revenue (unavailable: only in my developer copy, currently)
Support Response : 
bzowk wrote:
I do have a question about the operators, though. What I'm trying to do is create a filter which lists media with a 5.0 score or better, but don't know what operator to use.
<rule field="score" operator="greaterthan">4.9</rule>

bzowk wrote:
Also, is it possible to use "any", "all", etc in the same rule? Ideally, I want a rule which lists all "scifi" genre which has a score of 5.0 - 10.0. I created a rule file which had the genre rule in it as well as an individual rule line for 5.0 - 10.0 (50 lines) and "any", but it ended up showing media which belonged to that genre AND all media from all genres which had a 5.0+ score.
Type any means that any of the rules need to be satisfied. You meant all instead, such as:

<?xml version="1.0"?>
   <name>Good Rated Sci-Fi</name>
      <rule field="genre" operator="contains">sci</rule>
      <rule field="score" operator="greaterthan">4.9</rule>
</rulelist> ... permPage=1 ... permPage=1 ... permPage=1

Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group