Wait for the .ts link to be generated via XHR, retrieve the segments, and merge them into an .mp4 file