update mediaRepository and mediaManager