# coding=utf-8
from __future__ import print_function, unicode_literals
import inspect


class Patch(object):
    def patch_all_fuck_off_cc_anime(self, data):
        # c.c动漫
        return [i for i in data if 'c.c动漫' not in i['title']]

    def patch_bangumi_parser_netoge_no_yome_wa_onnanoko_ja_nai_to_omotta(self, data):
        # patching for 线上游戏的老婆不可能是女生？
        return [i for i in data if '[TSDM&LoveEcho!漫画组]' not in i['title']]

    def patch_www_working(self, data):
        # patching for WWW.WORKING!!
        return [i for i in data if '[WWW.迷糊餐厅!! WWW.WORKING!!][80][BIG5]' not in i['title']]

    def patch_one_piece(self, data):
        # patching for ONE PIECE 海贼王
        return [i for i in data if '161108' not in i['title']]


def main(data):
    patch = Patch()
    func_list = [i for i in dir(patch) if i.startswith('patch_') and inspect.ismethod(getattr(patch, i))]
    for func in func_list:
        data = getattr(patch, func)(data)

    return data

# coding=utf-8
from __future__ import print_function, unicode_literals
import inspect


class Patch(object):
    def patch_all_fuck_off_cc_anime(self, data):
        # c.c动漫
        return [i for i in data if 'c.c动漫' not in i['title']]

    def patch_bangumi_parser_netoge_no_yome_wa_onnanoko_ja_nai_to_omotta(self, data):
        # patching for 线上游戏的老婆不可能是女生？
        return [i for i in data if '[TSDM&LoveEcho!漫画组]' not in i['title']]

    def patch_www_working(self, data):
        # patching for WWW.WORKING!!
        return [i for i in data if '[WWW.迷糊餐厅!! WWW.WORKING!!][80][BIG5]' not in i['title']]

    def patch_one_piece(self, data):
        # patching for ONE PIECE 海贼王
        return [i for i in data if '161108' not in i['title']]

    def patch_tales_of_zestiria_the_x(self, data):
        # pathcing for Tales of Zestiria the X
        return [i for i in data if '[钉铛字幕组]' not in i['title']]



def main(data):
    patch = Patch()
    func_list = [i for i in dir(patch) if i.startswith('patch_') and inspect.ismethod(getattr(patch, i))]
    for func in func_list:
        data = getattr(patch, func)(data)

    return data

patch Tales of Zestiria the X