def is_anime(content, type, type_id): from openscrapers.modules import trakt try: r = trakt.getGenre(content, type, type_id) return 'anime' in r or 'animation' in r except: return False
def is_anime(content, type, type_id): try: r = trakt.getGenre(content, type, type_id) return 'anime' in r or 'animation' in r except: return False