LILY-220: update generatemedia