mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
BitTorrent v2 support enhancements 🥳 (#876)
* BitTorrent v2 support enchancements * Added torrent name sanitizing * Using faster language construct instead of function call for name sanitizing * Minor improvements - Fixed deformed avatars => get_avatar() function - Removed outdated dc links support * Code comments * Changed function name * Added table generation function with file list For search engines to index * Used humn_size function for size formatting in table generation * Fixed typo * Removed useless language variables * Fixed code formatting * Fixed broken displaying magnet link * Torrent fields sanitization in table * Fixed info hash issue * Support for v2 only torrents * Code re-formatting * Typo * Update Torrent.php * Update functions.php * Updated * Updated * Update Torrent.php * Update TorrentFileList.php * Update Torrent.php * Update Torrent.php * Update Torrent.php * Update Torrent.php * Error msg * Update Torrent.php * Update Torrent.php * Updated * Update Torrent.php * Update Torrent.php * Update config.php * Update mysql.sql * Update mysql.sql * Update mysql.sql * Update mysql.sql * Update mysql.sql * String fixes * Update TorrentFileList.php --------- Co-authored-by: Roman Kelesidis <roman25052006.kelesh@gmail.com>
This commit is contained in:
parent
bebf6dd4a4
commit
50926639cf
14 changed files with 139 additions and 85 deletions
|
@ -211,7 +211,7 @@ if ($tor_reged && $tor_info) {
|
|||
'DL_TITLE_CLASS' => (isset($bt_userdata['user_status'])) ? $dl_status_css[$bt_userdata['user_status']] : 'gen',
|
||||
'FILESIZE' => $tor_file_size,
|
||||
'MAGNET' => $tor_magnet,
|
||||
'HASH' => strtoupper(bin2hex($tor_info['info_hash'])),
|
||||
'HASH' => !empty($tor_info['info_hash']) ? strtoupper(bin2hex($tor_info['info_hash'])) : false,
|
||||
'HASH_V2' => !empty($tor_info['info_hash_v2']) ? strtoupper(bin2hex($tor_info['info_hash_v2'])) : false,
|
||||
'DOWNLOAD_COUNT' => declension((int)$download_count, 'times'),
|
||||
'REGED_TIME' => bb_date($tor_info['reg_time']),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue