Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Tree file
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / General / General Chat

2021-12-17 23:19:40
Hi @JohnHasher you just need a javascript fix to make that to works. That fix is copied from windows javascript



Download


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2021-12-18 06:38:43
does this script support array input from torrent trader
follow the thread for updates
checkout my project: https://bvlist.com/showthread.php?t=12349
2021-12-18 06:48:26
does this support array output from torrent info scrape lib in torrent trader.

even if i encode to json, i am not sure
follow the thread for updates
checkout my project: https://bvlist.com/showthread.php?t=12349
2021-12-18 10:15:03
really do not know much about this wish, test it and you will see if you can implement this "fix" / "mod"



www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2022-01-15 14:58:45
was able to make a file tree using v2 torrent file structure



still can't figure out on v1 torrents, its file structure is little difficult to break down
follow the thread for updates
checkout my project: https://bvlist.com/showthread.php?t=12349
Last edited by JohnHasher on 2022-01-15 15:01:20
2022-01-15 17:52:51
on v2 torrents it is possible to make file tree

follow the thread for updates
checkout my project: https://bvlist.com/showthread.php?t=12349
2022-01-16 05:48:34
are you inserting files into file table or using the serialised array in torrent table ?
2022-01-16 06:54:28
first i converted it into another array then serialize it and insert it to db
follow the thread for updates
checkout my project: https://bvlist.com/showthread.php?t=12349
2022-01-16 06:58:13
i made another function to apply it to html tags, like i said making a file tree for v2 was easy.

now i am trying my best to make a file tree for v1 torrent too, if i get results i will update
follow the thread for updates
checkout my project: https://bvlist.com/showthread.php?t=12349
Last edited by JohnHasher on 2022-01-16 07:26:42
2022-01-22 19:53:40
v1 was little bit tricky but done it


follow the thread for updates
checkout my project: https://bvlist.com/showthread.php?t=12349
2022-01-23 08:46:26
What code did you end up with
2022-01-23 09:47:42
it was very complicated but done it anyway

you need the array output of files from torrent parse / bencode and convert it into another array


function filetree($d){
   $cn = count($d);
   $cd = ($cn - 1);
   $tree = [];
   $stree = [];
for($x = 0; $x <= $cd; $x++){
   $curr = $d[$x]['path'];
   $curr_len = $d[$x]['length'];
$dc = sizeof($curr);
if($dc>1){
   $dcc = ($dc - 1);
   $arr = [];
   $s = 0;
   $arr = addftree($curr,$dcc,$s,$curr_len);
  $stree = array_merge_recursive($stree,$arr);

}else{
   $tree[] = ['name'=> $curr[0], 'size'=>$d[$x]['length']];
}
}

array_push($tree,$stree);
krsort($tree);
return $tree;
}
function addftree($a,$l,$p,$s){
   $y = ($p+1);
   if($p==$l){
       $tree = ['ZZL_files'=>['name'=> $a[$p], 'size'=>$s]];
   }else{
   $tree = [$a[$p] => addftree($a,$l,$y,$s)];
   }
 //  print_r($tree);
return $tree;
}

$f_list = unserialize($row['fstruct']); //serialized whole file structure array from db
print_r(filetree($f_list));

follow the thread for updates
checkout my project: https://bvlist.com/showthread.php?t=12349
Last edited by JohnHasher on 2022-01-23 09:48:26
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728