Version 30 (modified by Edward_K, 14 years ago)

--

Creating Torrents

Suggested Programs

Announce URLs

Announce URLs specify what trackers a torrent will use. Create a torrent with the following announce URLs

http://bt.edwardk.info:6969/announceThis must be first
http://bt.edwardk.info:2710/announce
http://bt.edwardk.info:942/announce
http://bt.edwardk.info:4040/announce
http://bt.edwardk.info:676/announce
http://bt.edwardk.info:6767/announce
http://bt.edwardk.info:12891/announce
http://bt.edwardk.info:63124/announce

Your torrent should look similar to This Each entry should be within the same group.

Piece Size

Most torrent creation programs allow automatic selection of piece size, you should use that exists. If not, then 256KB/2^18 for 175MB files is a good choice. For larger torrents, increase the piece size. 2MB/2048KB/2^21 or higher is a must for batch torrents. Torrents larger than 200KB are not allowed. This is a table that shows approximate torrent size vs piece size. Setting your program to auto will usually be fine. (Figures in bytes except where noted)

Piece size215216217218219220221221222223
32,76865,536131,072262,144524,2881,048,5762,097,1524,194,3048,388,60816,777,216
File size32KB64KB128KB256KB512KB1024KB2048KB4096KB8192KB16384KB
1,048,5761MB1,140820660580540520520520520520
52,428,80050MB32,50016,5008,5004,5002,5001,5001,000750625563
146,800,640140MB90,10045,30022,90011,7006,1003,3001,9001,200850675
183,500,800175MB112,50056,50028,50014,5007,5004,0002,2501,375938719
244,318,208233MB149,62075,06037,78019,1409,8205,1602,8301,6651,083791
367,001,600350MB224,500112,50056,50028,50014,5007,5004,0002,2501,375938
681,574,400650MB416,500208,500104,50052,50026,50013,5007,0003,7502,1251,313
734,003,200700MB448,500224,500112,50056,50028,50014,5007,5004,0002,2501,375
1,468,006,4001400MB896,500448,500224,500112,50056,50028,50014,5007,5004,0002,250
2,936,012,8002800MB1,792,500896,500448,500224,500112,50056,50028,50014,5007,5004,000
4,700,000,0004482MB2,869,1521,434,826717,663359,082179,79190,14545,32322,91111,7066,103
8,500,000,0008106MB5,188,4882,594,4941,297,497648,999324,749162,62581,56241,03120,76610,633
Overhead500 bytes

Overhead includes tracker URLs, Description, torrent overhead, etc.

Formula is (file size / piece size) * 20 + overhead

Web Interface

Log on with your provided FTP user & password. You can add and remove torrents from there.

Adding Torrents

  • To add a torrent, upload the torrent file to the FTP you were provided with.
  • Your login info is generally the group name and your password. Host: bt.edwardk.info Port: 5021
  • Torrents will show up only after they have been seeded or used.
  • Torrent filenames must use standard ASCII. Filenames inside the torrent should be encoded with UTF-8.
  • It will take less than 2 minutes for a torrent to be recognized after it's been uploaded.

Removing Torrents

To remove a torrent, delete the torrent file from the FTP you were provided with and check if you can see the torrent in the /mirrors/ folder. Delete from there if required as well.

Setting Up Categories

Below is a sample configuration file. The easiest way to add a new category is to add:

$i++; // Start next category
$categories[$i]['heading'] = '<h3>Some new category</h3>';
$categories[$i]['wildcards'] = '*Some new category*';
$categories[$i]['name'] = 'Some new category';

below the predefined categories. You can copy and paste this and only change the values. $i++ will increase the number for you so you don't have to number it yourself.

Configuration File

You can edit the configuration file to your preferred options.

See  http://php.net/manual/en/language.types.string.php for how strings are to be handled.

See  http://php.net/manual/en/function.array.php for how arrays are to be handled.

A text editor with syntax highlighting for PHP files can be very useful, such as  Notepad++.

Sample Configuration File

<?

define("CHANNELNAME",    '#%chan%');        // The channel name we display
define("NETWORKNAME",    '%network%');             //The network name we display
define("IRCSERVER",    '%irc%');        //IRC server name, incase it differs from the name of the network
define("WEBSITEURL",    '%website%');     //Website

//Some of the help messages
define("USERTEXT",    '');

define("TEMPLATE",'bt_templates\\main.inc.php');
define("ENTRYTEMPLATE",'bt_templates\\entry.inc.php');

$allowed_announces = array("http://bt.edwardk.info:6969/announce");
                        // a list of allowed announce URLs in torrents,
                        // modify only if you know what you're doing

/*
    Controls where uncategorized torrents go
    Top = top of the page
    Bottom = bottom of the page
*/
$settings['uncategorized_position'] = 'bottom';

/*
    Sort categories
    TRUE = categories are sorted, with exception of the uncategorized category, it will be sorted by the name value
    FALSE = categories are used in the order specified in this config file
*/
$settings['sort_categories'] = TRUE;


/*
    Show recent torrents
    TRUE = on
    FALSE = off
    number = how many entries to display per column
*/
$settings['recent']['status'] = TRUE;
$settings['recent']['number'] = 5;


/*
    Table of Contents (TOC)
    TRUE = show it
    FALSE = don't show it
    number = how many to show per column
*/
$settings['toc']['status'] = TRUE;
$settings['toc']['number'] = 7;
/*
    Define categories here
        0 is uncategorized torrents
        1 is the recent torrents
        2+ are user defined categories
        heading = allows you to insert HTML before the table for this category, be sure to quote it properly in a PHP variable.
                  be sure to use HTML entities when required!
        wildcards = which filenames are matched to this category, multiple wildcards could be used if it was in an array
                             such as array('*blah*','*yada*');
                             wildcards match the display name of a torrent, not filename!
        name = for sorting categories and TOC
        http://www.php.net/manual/en/language.types.string.php
*/
$i = 0;
$categories[$i]['heading'] = '<h3>Uncategorized</h3>';
$categories[$i]['wildcards'] = '';
$categories[$i]['name'] = 'Uncategorized';

$i++; // Start next category
$categories[$i]['heading'] = '<h3>New Torrents</h3>';
$categories[$i]['wildcards'] = '';
$categories[$i]['name'] = 'New Torrents';


// End of user editable contents'

define("CACHEFILE",'btcache.dat');
define("CACHETIME",120);
?>

Attachments