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

Outputs one URL per line