Resilient torrent parsing