get_media_prefix in tools