def SetSegmentType(segea, segtype):
    seg = idaapi.getseg(segea)

    if not seg:
        return False

    seg.type = segtype
    return seg.update()
Returns the components of a post id: (episode_id, photo_id).
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/SetSegmentType--crossover with--dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/post.py/Post.DeconstructPostId