mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-04 22:52:33 -06: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:
@@ -36,7 +36,7 @@ namespace BitTorrent
|
||||
}
|
||||
|
||||
// Torrent keys
|
||||
const char KEY_TORRENT_HASH[] = "hash";
|
||||
const char KEY_TORRENT_ID[] = "hash";
|
||||
const char KEY_TORRENT_NAME[] = "name";
|
||||
const char KEY_TORRENT_MAGNET_URI[] = "magnet_uri";
|
||||
const char KEY_TORRENT_SIZE[] = "size";
|
||||
|
||||
Reference in New Issue
Block a user