from common import contains


# Any video matching a condition in this list, will be discarded.

blacklist = [
    # globally ignore all videos that have "skyrim", ... in the title
    lambda title, uploader, date: contains(title, "skyrim"),
    lambda title, uploader, date: contains(title, "simcity"),
    lambda title, uploader, date: contains(title, "dota"),
    lambda title, uploader, date: contains(title, "dishonored"),
    lambda title, uploader, date: contains(title, "cubeworld"),
    lambda title, uploader, date: contains(title, "The Last of Us"),
    lambda title, uploader, date: contains(title, "Dead Space"),
    lambda title, uploader, date: contains(title, "twitch.tv"),
    lambda title, uploader, date: contains(title, "League of Legends")
]


# Any video not matching a condition in this list, will be discarded.

whitelist = [
    # globally allow all videos except from user "someuser"
    lambda title, uploader, date: uploader != "someuser",
    # from user "someuser", only allow videos that match "somephrase"
    lambda title, uploader, date: uploader == "someuser" and contains(title, "somephrase")
]
