caculate media index
media index
update api