This repository has been archived on 2024-08-03. You can view files and clone it, but cannot push or open issues or pull requests.
nyaa/README.md

1.3 KiB

nyaa

cli tool for streaming and downloading torrents from nyaa.si, heavily inspired by notflix

Dependencies

  • pmenu - Dynamic terminal-based menu
  • webtorrent - Tool to download torrents
  • aria2 - Lightweight alternative for webtorrent

Usage

$ nyaa                  # will prompt for query
$ nyaa your query here
$ nyaa fate apocrypha   # an example

Flags

  • d) download torrent to $NYAA_DIR using aria2
  • p) create a playlist of all files in the torrent
  • x) query sukebei.nyaa.si

Config

The program sources the file at $XDG_CONFIG_HOME/nyaa/config or $HOME/.config/nyaa/config Currently, there are only 2 environmental variables available

  • NYAA_DIR -> directory to which the torrents will be downloaded
  • NYAA_PLAYER_ARGS -> arguments passed to mpv

Example of the config file:

NYAA_DIR=$HOME/Torrents
NYAA_PLAYER_ARGS="--slang=eng --alang=jpn"

Installation

$ sudo curl -sL "https://gitlab.com/yaemiku/nyaa/-/raw/main/nyaa" -o /usr/local/bin/nyaa
$ sudo chmod +x /usr/local/bin/nyaa

To upgrade, you only need to run the first command