Fixed script to work with episode URLs that contain query strings.