Skip to content

About

Find films and shows, and watch them on your computer, phone, or TV while they download.

Topics

Resources

Stars

149 stars

Watchers

0 watching

Forks

Repository files navigation

torrential

Find films and shows, and watch them on your computer, phone, or TV while they download.

The web app's home page on a Mac, with two titles to continue watching and four saved titles The same home page on a phone

Install

On macOS and Linux:

curl -fsSL https://raw.githubusercontent.com/nexxeln/torrential/main/install.sh | sh

On Windows, in PowerShell:

irm https://raw.githubusercontent.com/nexxeln/torrential/main/install.ps1 | iex

The script puts one file at ~/.local/bin/torrential, or %LOCALAPPDATA%\Programs\torrential on Windows. torrential runs on macOS 14 or later on Apple silicon, on 64-bit Linux, and on 64-bit Windows 10 or later.

The engine starts at login and keeps running, so your phone and TV can always reach it. It resumes downloads after a restart and installs updates when nothing is playing. To stop it starting at login, run torrential engine uninstall.

Build from source

You need Rust, and Nix with flakes turned on.

git clone --recursive https://github.com/nexxeln/torrential
cd torrential
nix develop -c cargo install --path crates/torrential

Run it on a server

On a Linux server, NAS, or seedbox, install with --server:

curl -fsSL https://raw.githubusercontent.com/nexxeln/torrential/main/install.sh | sh -s -- --server

The engine then starts when the machine boots, with no one logged in, and listens on the network. The command ends with a QR code and a link that pair your first phone or computer. Paired devices reach the server from any network, and anyone else gets only the pairing page. torrential server uninstall turns this off.

Or run it in Docker, for amd64 and arm64. It needs the host's network to name its address in the pairing link and to find TVs, and it keeps settings, state and downloads in /data:

mkdir -p ~/torrential
docker run -d --name torrential --network host --restart unless-stopped \
  --user "$(id -u):$(id -g)" -v ~/torrential:/data ghcr.io/nexxeln/torrential
docker exec torrential torrential devices add

Templates for Unraid and TrueNAS set the same up. A newer image updates it. Its config file is /data/config/config.yaml.

To watch away from home, install Tailscale on the server and on your devices. The pairing link and QR code then use the server's tailnet name, which works from any network with no port opened. With a domain of your own, put Caddy in front, which gets the HTTPS certificate, and set public_address in the config file so pairing links use it:

tv.example.com {
	reverse_proxy 127.0.0.1:47919
}

Watch on your computer

torrential web

Search by name. Each film or show is one card, not a list of torrents. Press Play. torrential picks the torrent that suits your language and the screen you watch on, and moves to the next one if it does not start. While you watch, the film gets the bandwidth before other downloads.

What you play goes to a folder that only torrential uses, capped at 20 GiB. When it fills, torrential deletes the plays you watched longest ago, but never the film you watched last or a title you saved. When you remove a download you started yourself, its files go to the Trash, or the Recycle Bin on Windows.

torrential converts MKV files and surround sound for the browser with ffmpeg, and fetches ffmpeg the first time a file needs it.

Add a phone or a TV

The Devices page on the Mac, with a QR code, the address mac-mini.local:47919, a six-digit code, and one paired iPhone

On your computer, open Devices and choose Add a device, or run torrential devices add. On a phone, scan the QR code. On a TV, open the address in its browser and enter the code. The device needs no account and stores nothing. The web app works with a touch screen and with a TV remote. A device you did not add sees the pairing page and nothing else.

Play on TV

Night of the Living Dead on a phone, with the Play on TV list showing an LG TV and a Samsung TV

LG, Samsung, Sony, and most other smart TVs play over DLNA. On a title page, on your computer or a phone you added, choose Play on TV and pick the TV. The phone then works as the remote. torrential sends the TV only copies in a format it plays.

torrential tv                    # list the TVs on the home network
torrential tv play tt0063350     # play a film on the TV
torrential tv seek 1:02:30       # or pause, resume, volume, and stop

In your terminal

Run torrential to open the terminal UI on what you were watching and the titles you saved. Press / to find a film or a show, and Enter to open or play it in IINA, mpv, or VLC. Press d to see your downloads.

Or run the commands yourself:

torrential titles night of the living dead   # find a film or a show
torrential play tt0063350                    # watch it in IINA, mpv, or VLC
torrential play tt1748166 s01e02             # or one episode
torrential get tt0063350                     # download it to keep

torrential search arch linux iso             # or search every torrent
torrential get 9b5212 --files '*.iso'        # and download only the files you want
torrential status                            # list your downloads

torrential --help lists the rest. Every command takes --json.

Private and local trackers

To search a tracker torrential lacks, such as a private one or one in your language, run Prowlarr or Jackett, add the tracker there, then give torrential its address and API key:

torrential indexers add http://localhost:9696 --key <api key>   # adds every tracker you set up in Prowlarr
torrential indexers                                             # whether each answers, and what it carries

Search, titles and Play then use those trackers too, also when the engine runs on a server. Jackett's address works the same way, and so does any Torznab feed. The key is kept in config.yaml, which only you can read.

With your agent

torrential skill install

The skill teaches Claude Code, Codex, Gemini CLI, Cursor, and other agents to use torrential. Then ask in plain words, such as "play Night of the Living Dead on the TV" or "download the latest Arch Linux ISO".

Settings

torrential setup shows the screen and language torrential found on your computer and lets you change them. Film and show details come from Cinemeta and IMDb. Set everything else in ~/.config/torrential/config.yaml, or %LOCALAPPDATA%\torrential\config\config.yaml on Windows:

downloads:
  dir: ~/Downloads/torrents   # default: a torrential folder in Downloads
plays:
  max: 50GiB                  # what plays may take up, default 20GiB
player: mpv                   # for torrential play: iina, mpv, vlc, or a path
subtitles:
  online: false               # do not look for subtitles online
catalog:
  online: false               # do not look up films and shows online
ffmpeg:
  fetch: false                # do not fetch ffmpeg when it is not installed
updates: notify               # say when a new version is out instead of installing it, or off
torrent_interface: wg0        # Linux and macOS: peers, trackers and the DHT use only this network
                              # interface, such as a VPN's, and wait while it is down
public_address: https://tv.example.com  # the address pairing links use, such as a domain in front of a server

It never seeds

torrential never uploads a piece, and a download stops as soon as it finishes. It puts lawful sources such as archive.org first among equal matches. Download only what you have the right to.

License

MIT. See LICENSE.

About

Find films and shows, and watch them on your computer, phone, or TV while they download.

Topics

Resources

Stars

149 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages