BitTorrent v2 support 🐸 (#866)

* BitTorrent v2 support

* Update TorrentFileList.php

* BitTorrent v2 support

Added support for BitTorrent v2 file hash displaying, magnet links

* Updated

* Updated

* Update changes.txt

* Update Torrent.php

* Update Torrent.php

* Updated

* Added support in announcer

* Update announce.php

* Update scrape.php

* Update scrape.php

* Update scrape.php

* Changed the condition for single files

* Update scrape.php

* Update displaying_torrent.php

* Update displaying_torrent.php

* Update displaying_torrent.php

---------

Co-authored-by: Roman Kelesidis <roman25052006.kelesh@gmail.com>
This commit is contained in:
Constantine Kovalensky 2023-08-27 15:33:38 +04:00 committed by GitHub
commit fadce7a297
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 104 additions and 27 deletions

View file

@ -155,7 +155,7 @@ if ($tor_reged && $tor_info) {
$tor_type = $tor_info['tor_type'];
// Magnet link
$tor_magnet = create_magnet($tor_info['info_hash'], $user_passkey);
$tor_magnet = create_magnet($tor_info['info_hash'], $tor_info['info_hash_v2'], $user_passkey);
// ratio limits
$min_ratio_dl = $bb_cfg['bt_min_ratio_allow_dl_tor'];