script to fix valid domains on bad media files