Skip to content

Run command

Steven Culwell edited this page Apr 3, 2024 · 5 revisions

Configuration

This "client" only runs a command with substitutions on pressing Enter. The valid substitutions are:

  • {torrent} - The link to the torrent file hosted on nyaa.si
  • {magnet} - The magnet link associated with the torrent
  • {title} - The title of the post on nyaa.si
  • {file} - The name of the torrent file hosted on nyaa.si. It usually looks like 1783089.torrent

Default config

If you've selected "command" as your default download client, you will find this towards the bottom of your config (with only the required values present). This client has no values as of now.

The default configuration for Linux is:

# Your config in ~/.config/nyaa/config.toml
# ...
default_client = "command"
# ...

[client.command]
cmd = "curl \"{torrent}\" > ~/{file}" # required
shell_cmd = "sh -c" # required

and on Windows is:

# Your config in %appdata%\nyaa\config\config.toml
# ...
default_client = "command"
# ...

[client.command]
cmd = 'curl "{torrent}" -o ~\Downloads\file}' # required
shell_cmd = "powershell.exe -Command" # required