Jump to content

Add file PATH in .Torrent


Extremlym

Recommended Posts

Posted

Hello !!!
 how can i add a file in .torrent file without changing the HASH ?

EXAMPLE RAW TORRENT EDITED
 

"files" : [
   {
    "length" : 31,
    "path" : [
     "example.txt"
    ]
   },
   {
    "length" : 1099525988,
    "path" : [
     "The.Snowman.2017.HC.WEBRip.x264-ExtremlymTorrents.ws.mp4"
    ]
   }
  ],
  "name" : "The.Snowman.2017.HC.WEBRip.x264-ExtremlymTorrents.ws",
  "piece length" : 1048576,
  "pieces" : "blabla
 }
}

using $dict['value'] ??? from TORRENTS-UPLOAD.php?

 

// Edit Torrent Comment 2017 Extremlym
    require_once("backend/BDecode.php");
    require_once("backend/BEncode.php");
    $dict = BDecode(file_get_contents($site_config["torrent_dir"] . "/$id.torrent"));
    $dict['comment'] = "Torrent downloaded from " . $site_config['SITENAME'];
	$dict['created by'] = "Torrent created for " . $site_config['SITEURL'];
	$dict['publisher-url'] = "Site: " . $site_config['SITEURL'];

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...