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 October 19th, 2017, 10:13 am

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 
Offline
Community Support
User avatar

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

Code:
<?xml version="1.0"?>
<rulelist>
   <name>Good Rated Sci-Fi</name>
   <match>all</match>
   <type>filter</type>
   <rules>
      <rule field="genre" operator="contains">sci</rule>
      <rule field="score" operator="greaterthan">4.9</rule>
   </rules>
</rulelist>


https://www.youtube.com/watch?v=U7kMPo-3UBA

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.17.26917.859 / September 26th, 2017


 Profile  
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-2017, Media Center Master, Inc. All rights reserved.