update medias file