Skip to content

ismaelpadilla/gotorrent

Folders and files

NameName
Last commit message
Last commit date
Aug 3, 2022
Aug 3, 2022
Aug 30, 2022
Jul 20, 2022
Aug 30, 2022
Jul 15, 2022
Jul 24, 2022
Aug 21, 2022
Jul 13, 2022
Aug 3, 2022
Aug 8, 2022
Jul 21, 2022
Jul 21, 2022
Jul 15, 2022

Repository files navigation

gotorrent

version golangci-lint

TUI for searching torrents. You can open a torrent's magnet link in your default app, or download its .torrent file. This app does not handle leeching/seeding a torrent.

Currently queries ThePirateBay's API.

gotorrent.mp4

Installation

Using go

go install github.com/ismaelpadilla/gotorrent@latest

Alternatively, you can clone the repo:

git clone https://github.com/ismaelpadilla/gotorrent
cd gotorrent
go install

Install from package

AUR

gotorrent is available on the AUR:

yay -S gotorrent

Homebrew

brew install ismaelpadilla/tap/gotorrent

Usage:

gotorrent <query>

Input a number and press enter to navigate to that torrent's magnet link. Or use the up and down (or j/k) keys to navigate the torrent list.

Keybinds

  • up/k: Scroll up.
  • down/j: Scroll down.
  • Enter: Navigate to a selected torrent.
  • t: Download .torrent file.
  • c: Copy magnet link to clipboard.
  • d: See torrent description.
  • f: See torrent files.
  • s: Enter a new search query.
  • q: Quit.
  • ?: Expand/minimize help.

Flags

  -d, --debug                    show debug information
  -f, --download-folder string   folder where files are downloaded
  -h, --help                     help for gotorrent
  -p, --persist                  keep gotorrent open after selecting torrent

Configuration

A configuration file can be used, but flags take precedence over configuration.

Location

A config file can be put in the following locations:

  • Same folder as the executable.
  • $HOME/.config/gotorrent/.

Config keys

Only one configuration key can be set:

download-folder: Same as the --download-folder flag.

Configuration file example

download-folder = "/home/myUser/torrent"

Roadmap

Work on the v0.1.0 milestone has been completed and the first version has been officially released.

Currenlty work is being done on:

  • Code cleanup
  • Bugfixes
  • QoL things
  • Potentially adding new clients to search torrents from other sources