update media library, add media type