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
User Posts

Go to Profile

Tree file — 2022-01-16 06:58:13 in General Chat
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
Tree file — 2022-01-16 06:54:28 in General Chat
first i converted it into another array then serialize it and insert it to db
Tree file — 2022-01-15 17:52:51 in General Chat
on v2 torrents it is possible to make file tree
V2 LibTorrent — 2022-01-15 17:44:52 in General Chat
making a file tree for v2 torrents is easy



still can't figure out how to build for v1 torrents
V2 LibTorrent — 2022-01-15 17:14:10 in General Chat
total file size is not available too

but i found a way to calculate it

Tree file — 2022-01-15 14:58:45 in General Chat
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

$pvkey_var = "v_".$id;
          $views = $_SESSION[$pvkey_var] == 1 ? $row["views"] + 0 : $row["views"] + 1;
if(isset($_SESSION[$pvkey_var]) && $_SESSION[$pvkey_var]!=1){
          DB::update('torrents', ['views'=>$views], ['id'=>$id]);
$_SESSION[$pvkey_var] = 1;
}


you can avoid unwanted db execution
V2 LibTorrent — 2022-01-15 12:25:20 in General Chat
i want to build a file tree similar like kickass



if you got any idea please share
V2 LibTorrent — 2022-01-15 07:17:09 in General Chat
if you want to edit the torrent check this lib https://github.com/arokettu/torrent-file

since you guys are using private tracker, need to work on inserting passkey...
V2 LibTorrent — 2022-01-15 07:09:32 in General Chat
i think either we need to force uploaders to use the v2 or continue on using v1

in my opinion v2 is better
V2 LibTorrent — 2022-01-15 07:08:26 in General Chat
v1 and v2 decoder file structure output is different thats why

on v1 file list are decoded like

[info] => Array
       (
           [files] => Array
               (
                   [0] => Array
                       (
                           [length] => 1535753602
                           [path] => Array
                               (
                                   [0] => products
                                   [1] => PPRO
                                   [2] => AdobePremierePro15AllTrial.zip
                               )

                       )

                   [1] => Array
                       (
                           [length] => 799
                           [path] => Array
                               (
                                   [0] => Instructions!.txt
                               )

                       )


on v2 torrent, its decoded like

   [info] => Array
       (
           [file tree] => Array
               (
                   [Dont.Look.Up.2021.1080p.WEBRip.x264.AAC5.1-[YTS.MX].mp4] => Array
                       (
                           [] => Array
                               (
                                   [length] => 2833229849
                                   [pieces root] => �r<{��5����hy�x�0�JchO<#��0L�
                               )

                       )


on v2 its a perfect file tree.
V2 LibTorrent — 2022-01-15 05:15:33 in General Chat
array keys contain file tree, this is great
V2 LibTorrent — 2022-01-15 05:14:29 in General Chat


Array
(
   [file tree] => Array
       (
           [Dont.Look.Up.2021.1080p.WEBRip.x264.AAC5.1-[YTS.MX].mp4] => Array
               (
                   [] => Array
                       (
                           [length] => 2833229849
                           [pieces root] => �r<{��5����hy�x�0�JchO<#��0L�
                       )

               )

           [Dont.Look.Up.2021.1080p.WEBRip.x264.AAC5.1-[YTS.MX].srt] => Array
               (
                   [] => Array
                       (
                           [length] => 175761
                           [pieces root] => i:kh=J���5G�
���n�5l/��8��
                       )

               )

           [Subs] => Array
               (
                   [Arabic.ara.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 216419
                                   [pieces root] => �@f��E�(���j���L��[%e#�U/
                               )

                       )

                   [Brazilian Portuguese.por.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 140190
                                   [pieces root] => ӳ(N�N�"�w=���^�E|O���9��{�u.�
                               )

                       )

                   [Chinese Simplified.chi.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 151080
                                   [pieces root] => :9+�g�#�r���
���*a�)�5ۺ�
                               )

                       )

                   [Chinese Traditional.chi.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 146874
                                   [pieces root] => kX�����0h��l.)�x��lʠ�Oe�.��
                               )

                       )

                   [Croatian.hrv.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 138433
                                   [pieces root] => �hbn�0*�eɅ�ͨ0 Array
                       (
                           [] => Array
                               (
                                   [length] => 140204
                                   [pieces root] => �a�����6�X� "�w�Z�R�z��f��
                               )

                       )

                   [Danish.dan.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 135763
                                   [pieces root] => I��1:�'��ۏ�ƈ�& ڊ��<ݝ���2�
                               )

                       )

                   [Dutch.dut.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 129308
                                   [pieces root] => ȹ���A�� 4�&��(y!2l�t��#݀
                               )

                       )

                   [English [SDH].eng.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 175761
                                   [pieces root] => i:kh=J���5G�
���n�5l/��8��
                               )

                       )

                   [European Spanish.spa.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 147261
                                   [pieces root] => �$j(��H�����)��+�x� fzr��ܯ
                               )

                       )

                   [Finnish.fin.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 128347
                                   [pieces root] => ]a�K�O�u+@��\��h���H{��q<��Yd,
                               )

                       )

                   [French.fre.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 140480
                                   [pieces root] => �&9>Y{�'� �P��.f�kKU!��`�B
                               )

                       )

                   [German.ger.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 141457
                                   [pieces root] => �Ȫ���:�B��l/��,��X�Oc�1��
                               )

                       )

                   [Greek.gre.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 195696
                                   [pieces root] => p�����S�^R��=�I�e��'4bΒ��3�
                               )

                       )

                   [Hebrew.heb.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 190228
                                   [pieces root] => ���}etUlv��6�CT�D�Կ��������
                               )

                       )

                   [Hungarian.hun.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 145866
                                   [pieces root] => �67K�z�Q�2�&�o�����+8��g
                               )

                       )

                   [Indonesian.ind.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 141899
                                   [pieces root] => m��ُ��R��]^1�䑤׀�?-.0n�]�\[�
                               )

                       )

                   [Italian.ita.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 142224
                                   [pieces root] => ��Y��r|�"�4��\5$ �-�+�3 �
                               )

                       )

                   [Japanese.jpn.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 147454
                                   [pieces root] => ��]"b���[�V��tW�t���i!�Jw@
                               )

                       )

                   [Korean.kor.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 156316
                                   [pieces root] => m���ٝ>�Λ�i�Kf�"�!�7T6���b
                               )

                       )

                   [Malay.may.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 140277
                                   [pieces root] => ��U ���U����x���f�8a%�[�!�N
                               )

                       )

                   [Norwegian Bokmal.nob.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 132641
                                   [pieces root] => �{�;z�@�.��=���P�?e��
;�����
                               )

                       )

                   [Polish.pol.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 141924
                                   [pieces root] => 4 L\Y��Q�\�1t���B��u���j�IȢ
                               )

                       )

                   [Portuguese.por.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 142554
                                   [pieces root] => �7;�6ڧ�cgdW�&�t5�z*�ո���^�
                               )

                       )

                   [Romanian.rum.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 155807
                                   [pieces root] => �\Z��bpj�Sy��.j��ޛ�%I�=Bl�{
                               )

                       )

                   [Russian.rus.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 190832
                                   [pieces root] => �/D~�p�Ĭ���]|�I�/�����“���
                               )

                       )

                   [Spanish.spa.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 145674
                                   [pieces root] => ��3!��u�00�/���f�JVjm5#�c$i
                               )

                       )

                   [Swedish.swe.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 131559
                                   [pieces root] => �
�!t)+Ɯ�_� @oA����\�^��p
                               )

                       )

                   [Thai.tha.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 267122
                                   [pieces root] => ����-L��5�s���|Y�m���f����G
                               )

                       )

                   [Turkish.tur.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 146612
                                   [pieces root] => X�Ӟ�¶�8r���A^��Ĩ������e��_��s
                               )

                       )

                   [Ukrainian.ukr.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 186665
                                   [pieces root] => �odv���b���PfN׌n��! wi�DY��N�O
                               )

                       )

                   [Vietnamese.vie.srt] => Array
                       (
                           [] => Array
                               (
                                   [length] => 176855
                                   [pieces root] => �#pc�MM�u82���{"���=Mׄ-���yV
                               )

                       )

               )

       )

   [meta version] => 2
   [name] => Dont Look Up (2021) [1080p] [WEBRip] [5.1] [YTS.MX]
   [piece length] => 1048576
)


return by using arokettu/bencode
V2 LibTorrent — 2022-01-15 05:01:05 in General Chat
instead of var_dump use print_r too
V2 LibTorrent — 2022-01-14 18:35:23 in General Chat
add <pre> tag to make the array readable
V2 LibTorrent — 2022-01-14 18:33:15 in General Chat
what about this https://github.com/arokettu/bencode

documentation is poor

i can't decode file with this lib

another lib is https://github.com/bhutanio/bencode

i am not sure if decoding file is possible
else every page refresh will be counted as views
Scrape — 2022-01-11 19:31:46 in v3 Support
Here use this one and call mscrape(torrent infohash, trackers in array) it will return peer info in array (code key value is 1 means successfully updated & 0 means failed, check the log for error)

another thing is you can encode output array to json and fetch using javascript and update it on page without refresh.

place it in functions.php

//scrape fxn
function mscrape($infohash , $tracker){
require_once (__DIR__ ."/class.scraper.php");
if(isset($infohash) && isset($tracker)){
    $scraper = new Scrapeer\Scraper();
    $rat = $scraper->scrape( $infohash, $tracker);
    if(isset($rat)){
              if(empty($rat[$infohash]["seeders"]) && empty($rat[$infohash]["leechers"])){
                  $seed  = "0";
                  $leech = "0";
              }
              elseif(empty($rat[$infohash]["leechers"]))
              {
                  $seed  = $rat[$infohash]["seeders"];
                  $leech = "0";
              }
              elseif(empty($rat[$infohash]["seeders"])){
                  $seed  = "0";
                  $leech = $ret[$infohash]["leechers"];
              }
              else {
              $seed  = $rat[$infohash]["seeders"];
              $leech = $rat[$infohash]["leechers"];
              }
     
    SQL_Query_exec("UPDATE `torrents`  SET `last_action` = '".get_date_time()."', `seeders` = '".$seed."', `leechers` = '".$leech."' WHERE `info_hash` = '".$infohash."'");
    $lmessage = "Updated Torrent: ".$infohash." with s: ".$seed." and l: ".$leech."";
      $rcode = 1;
    }else{
        if ($scraper->has_errors()){
          $lmessage = $scraper->get_errors()." _on ".$infohash;
        }
      $rcode = 0;
    }
write_log($lmessage);
}else{
$rcode = 0;
}

  if($rcode == 1){
  $ret[] = array('code' => utf8_encode($rcode),'sd' => utf8_encode($seed), 'lh' => utf8_encode($leech));
  }else{
   $ret[] = array('code' => utf8_encode($rcode));  
  }
  return $ret;
}      
File Tree — 2022-01-10 15:06:32 in General Chat
no need to flatten the file list array.

only flatten announce urls to make it single array to get it working with new scrape lib
File Tree — 2022-01-10 14:48:32 in General Chat
need to work on torrent decode lib
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: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728