Handle --get-url with merged formats (fixes #2883)