diff --git a/filelist.php b/filelist.php index 05b1374e9..cd4014a41 100644 --- a/filelist.php +++ b/filelist.php @@ -53,8 +53,8 @@ if (!is_file($file_path)) { $file_contents = file_get_contents($file_path); if ($bb_cfg['flist_max_files']) { - $filetree_pos = !empty($row['info_hash_v2']) ? strpos($file_contents, '9:file tree') : false; - $files_pos = !empty($row['info_hash']) ? strpos($file_contents, '5:files', $filetree_pos) : false; + $filetree_pos = $meta_v2 ? strpos($file_contents, '9:file tree') : false; + $files_pos = $meta_v1 ? strpos($file_contents, '5:files', $filetree_pos) : false; if ($filetree_pos) { $file_count = substr_count($file_contents, '6:length', $filetree_pos, ($files_pos ? ($files_pos - $filetree_pos) : null)); @@ -201,14 +201,14 @@ sup { ? BitTorrent Merkle Root is a hash of a file embedded in torrents with BitTorrent v2 support, tracker users can extract, calculate them, and download deduplicated torrents using desktop tools such as - Torrent Merkle Root Reader. + Torrent Merkle Root Reader. {$allFiles} -
Generated by TorrentPier
+Generated by TorrentPier