don't assume media.name is unique (but that with country should be) - fixes #168