Chapter 13. ELinks BitTorrent Client
Prev |  | Next

## Chapter 13. ELinks BitTorrent Client

This chapter provides a small manual for using the implemented BitTorrent client. The BitTorrent client is provided as an optional add-on for ELinks, and needs to be enabled at compile time. To build ELinks with BitTorrent support be sure to either pass `--enable-bittorrent` to `./configure` or change the value of `CONFIG_BITTORRENT` to `yes` in `features.conf`.

## Using the BitTorrent Client

To start the client, first go to a site which offers metainfo files. In the following, we will use the site http://www.legaltorrents.com/. Direct ELinks to this site by issuing the command:

    $ elinks http://www.legaltorrents.com/

Use the arrow keys to move between links on the page. Find a link, which points to a metainfo file (a file having the extension `.torrent`). This is indicated in the status bar in the bottom line. Once a metainfo file has been located, press the Return key. This should present you with the following dialog, querying whether the client should start to download the torrent:

    +--------------------------- What to do? ----------------------------+
    |                                                                    |
    |  What would you like to do with the file 'go-open-vol-2.torrent'?  |
    |  Information about the torrent:                                    |
    |  Size: 739 MiB (2959 * 262144 + 161542)                            |
    |  Info hash: d85ef7b05288dc49203a7de97545e6c132834011               |
    |  Announce URI: http://www.legaltorrents.com:7070/announce          |
    |  Creation date: Jun 26 08:04                                       |
    |  Directory: go-open-vol-2                                          |
    |                                                                    |
    |  [X] 105 MiB go-open-episode-07.mp4                                |
    |  [X] 105 MiB go-open-episode-08.mp4                                |
    |  [X] 105 MiB go-open-episode-09.mp4                                |
    |  [X] 104 MiB go-open-episode-10.mp4                                |
    |  [X] 105 MiB go-open-episode-11.mp4                                |
    |  [X] 107 MiB go-open-episode-12.mp4                                |
    |  [X] 106 MiB go-open-episode-13.mp4                                |
    |  [X]  22 KiB go-open-vol-2.txt                                     |
    |                                                                    |
    |  [ Download ]  [ Save ]  [ Display ]  [ Show header ]  [ Cancel ]  |
    +--------------------------------------------------------------------+

Press the `[ Download ]` button to open the download dialog and start downloading.

Downloaded files can be found in the directory specified by the option `document.download.directory`. There is currently no way to change that.

Prev |  | Next
The "but"s | Home | The Resume Dialog