mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
Improve "info hash" handling
Define "torrent ID" concept, which is either a SHA1 hash for torrents of version 1, or a SHA256 hash (truncated to SHA1 hash length) for torrents of version 2. Add support for native libtorrent2 info hashes.
This commit is contained in:
parent
4da4fb0676
commit
561b597031
34 changed files with 463 additions and 320 deletions
|
@ -312,8 +312,9 @@ void PropertiesWidget::loadTorrentInfos(BitTorrent::Torrent *const torrent)
|
|||
|
||||
// Save path
|
||||
updateSavePath(m_torrent);
|
||||
// Hash
|
||||
m_ui->labelHashVal->setText(m_torrent->hash().toString());
|
||||
// Info hash (Truncated info hash (torrent ID) with libtorrent2)
|
||||
// TODO: Update label for this property to express its meaning more clearly (or change it to display real info hash(es))
|
||||
m_ui->labelHashVal->setText(m_torrent->id().toString());
|
||||
m_propListModel->model()->clear();
|
||||
if (m_torrent->hasMetadata())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue