mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-31 12:00:16 -07:00
Fix torrent availability computation
This commit is contained in:
parent
ad79cbb9a1
commit
85d2fd8ce0
1 changed files with 2 additions and 2 deletions
|
@ -579,7 +579,7 @@ void QTorrentHandle::downloading_pieces(bitfield &bf) const {
|
||||||
|
|
||||||
bool QTorrentHandle::has_metadata() const {
|
bool QTorrentHandle::has_metadata() const {
|
||||||
#if LIBTORRENT_VERSION_MINOR > 15
|
#if LIBTORRENT_VERSION_MINOR > 15
|
||||||
return torrent_handle::status(query_distributed_copies).has_metadata;
|
return torrent_handle::status(0x0).has_metadata;
|
||||||
#else
|
#else
|
||||||
return torrent_handle::has_metadata();
|
return torrent_handle::has_metadata();
|
||||||
#endif
|
#endif
|
||||||
|
@ -587,7 +587,7 @@ bool QTorrentHandle::has_metadata() const {
|
||||||
|
|
||||||
float QTorrentHandle::distributed_copies() const {
|
float QTorrentHandle::distributed_copies() const {
|
||||||
#if LIBTORRENT_VERSION_MINOR > 15
|
#if LIBTORRENT_VERSION_MINOR > 15
|
||||||
return torrent_handle::status(0x0).distributed_copies;
|
return torrent_handle::status(query_distributed_copies).distributed_copies;
|
||||||
#else
|
#else
|
||||||
return torrent_handle::status().distributed_copies;
|
return torrent_handle::status().distributed_copies;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue