fix torrent_history for URL downloads (torrents that change info-hash)