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.
Go to file
2022-07-12 02:40:59 +02:00
LICENSE tidy it all up, bsd license 2022-03-14 22:12:32 +01:00
nyaa basically change the whole script, for better of course :) 2022-07-12 02:40:59 +02:00
README.md basically change the whole script, for better of course :) 2022-07-12 02:40:59 +02:00

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