We now look at the metadata to decide which segment to download next.

This is WIP for resuming incomplete downloads, although we don't detect an incomplete download yet when asked to start one, as the modification time is still the same.