Source

mediatr / filters / sample.py

Full commit
"""
Sample skeleton for new filter.
"""

def enabled():
    """
    Various cheks goes here (settings, imports, etc)
    """
    return False

def filter_obj(object, params=None):
    """
    Main filter body. Object is instance of mediatr.models.Item, params is a filter specific tunings.
    """