Always call get_metadata() in download_retry_loop()