From online docs, yum only supports
http://, ftp:// and file:// URLs, not media://.
This leaves me wondering where the media:// comes from, as it's not in the config part you posted.
Perhaps it's even supposed to be file:///media/... (ie originally pointing to install DVD).