magnet

command module
v0.0.0-...-692ccb8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 1 Imported by: 0

README

Magnet

This project is a CLI tool to get magnet links from Torrent Galaxy based on a search query and optional season and episode parameters.

Usage

magnet "For All Mankind S04E10"
magnet "For All Mankind" --season 4 --episode 10
magnet "For All Mankind" -s 4 -e 10

Demo

https://github.com/alissonsleal/magnet/assets/19809377/f50e9496-3f92-4181-bf6e-63c4f66dabb0

Description

The tool searches for magnet links on Torrent Galaxy based on the provided search query and optional season and episode parameters.

Installation

To use this tool, you can clone the repository and build the project using Go.

# clone the repository
git clone https://github.com/alissonsleal/magnet
cd magnet

# download dependencies
go mod download

# build the project
go build -o magnet
# or install the project
go install

# run the project (if built)
./magnet "For All Mankind S04E10"
# run the project (if installed)
magnet "For All Mankind S04E10"

Dependencies

Developed with Go 1.21.6, but should work with older versions

We're using go modules to manage dependencies. The following dependencies are used in this project:

  • github.com/andybalholm/cascadia
  • github.com/atotto/clipboard
  • github.com/pterm/pterm
  • github.com/spf13/cobra
  • golang.org/x/net/html

Usage

To use the tool, simply run the executable and provide the search query along with optional season and episode parameters.

magnet "For All Mankind S04E10"
magnet "For All Mankind" --season 4 --episode 10
magnet "For All Mankind" -s 4 -e 10

Optional Flags

The following flags are available:

  • --season or -s: The season number
  • --episode or -e: The episode number

License

This project is licensed under the MIT License.

TODO

  • Add support for other torrent sites
  • Limit the max amount of characters in the name result (breaks the table)
  • Show the entire line of the result when selecting a row
  • Release binaries for Linux
  • Release binaries for macOS
  • Release binaries for Windows

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL