Welcome to Media Center Master!
A powerful solution for mastering your digital media library.
Supporting Emby, Kodi/XBMC/OSMC, Plex, Windows Media Center, and more!

Home Download Gallery Wiki Issue Tracker Licensing Forums

   FAQ  •  Search •  Login •  Register     
It is currently April 14th, 2021, 5:47 pm

All times are UTC - 7 hours [ DST ]

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Creating Custom Filtering Rules
PostPosted: September 13th, 2015, 3:49 pm 
Community Support
User avatar

Joined: September 10th, 2010, 8:36 am
Posts: 2864
Location: Washington
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>


https://www.facebook.com/MediaCenterMas ... permPage=1
https://www.facebook.com/MediaCenterMas ... permPage=1
https://www.facebook.com/MediaCenterMas ... permPage=1

Support Information
Help-Support Information, Click "Copy All", "Yes", "OK", "Close" and paste in forum

Debug logging
Help-Debug-Show developer-level debug messaging

stable version 2.20.32820.456/ November 23rd, 2020

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 7 hours [ DST ]

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Copyright © 2009-2021, Media Center Master, Inc. All rights reserved.