def convertGenre(val): if val is not None and len(val) > 0: val = val[0] if len(val) > 1: if val[0] > 0: gid = val[0] * 16 + val[1] return str(getGenreStringLong(val[0], val[1])).strip(), gid return "", 0
def convertGenre(val): if val is not None and len(val) > 0: val = val[0] if len(val) > 1: if val[0] > 0: gid = val[0]*16 + val[1] return str(getGenreStringLong(val[0], val[1])).strip() , gid return "",0