Package Details: nyaa 0.8.0-1

Git Clone URL: https://aur.archlinux.org/nyaa.git (read-only, click to copy)
Package Base: nyaa
Description: A tui tool for browsing and downloading torrents from nyaa.si
Upstream URL: https://github.com/Beastwick18/nyaa/
Licenses: GPL-3.0-or-later
Conflicts: nyaa
Provides: nyaa
Submitter: Beastwick
Maintainer: Beastwick
Last Packager: Beastwick
Votes: 1
Popularity: 0.46
First Submitted: 2024-02-01 20:51 (UTC)
Last Updated: 2024-04-04 14:40 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

Beastwick commented on 2024-03-20 20:53 (UTC)

I'll for sure check out paru-bin, I actually use paru as my AUR helper so I'm familiar with it :)

Thankfully for both qBittorrent and transmission, both their corresponding cli/daemon versions have the exact same API as their desktop version. So both of them work with nyaa.

m040601 commented on 2024-03-20 12:31 (UTC) (edited on 2024-03-20 12:34 (UTC) by m040601)

This is my first time maintaining a package on the AUR, so I'm still pretty new to creating PKGBUILD files.

No worries. You are doing a great job. I'm not an expert either. There is a lot of people packing rust tools "xxx-bin" on AUR. Dont forget the specifi wiki pages for rust packaging.

I would also recommend to follow some high profile ones, to see how they do it. Ex, https://aur.archlinux.org/packages/paru-bin.

... rqbit ... I'll likely add support as it ...
...Bittorrent and Transmission...

I actually find 'rqbit' still a bit clunky. There's still a lot to polish there. The surprising thing is that it landed as official Arch package. There are some rust fans there.

As comparison I've been using transmission daemon/cli totally headless. I want the torrenting in the server, not my desktop or a GUI. Fabulous thing. Which has many many years of development and polish.

Follow the feeds to keep up to date, https://archlinux.org/feeds/

Beastwick commented on 2024-03-20 11:08 (UTC) (edited on 2024-03-20 11:09 (UTC) by Beastwick)

Thanks a lot for the kind words! I'm glad you like the project :)

Support for different clients like qBittorrent and Transmission are only on the up-to-date main branch as of now. Once they are published in a release, example configs for each client will be shown.

Since rqbit has a HTTP API, I'll likely add support as it shouldn't be too difficult.

I'll also try and add example configs for clients that have a command-line interface, but aren't officially supported like aria2c.

As for a nyaa-bin package, I'm definitely looking to make a package for that. I've actually had issues getting the current PKGBUILD to work on some systems.

The download link is translated with the prefix

$pkgname-$pkgver.tar.gz::

which translates the downloaded file into the proper filename. The .crate file is encoded the same as a .tar.gz, so it can just be renamed. This is my first time maintaining a package on the AUR, so I'm still pretty new to creating PKGBUILD files.

m040601 commented on 2024-03-20 07:04 (UTC) (edited on 2024-03-20 08:13 (UTC) by m040601)

Thanks for the work on the tool, and for maintaining the PKGBUILD.

I just bumped into it by accident when searching for "ratatui" stuff. I'm a command line freak. I test a lot of different new CLI/TUI stuff showing up on the AUR. Old, new, sexy Rust/Go, boring old ncurses, you name it. There is also a lot of new badly designed crap out there.

There is also a "gotorrent-bin" on the AUR. But much less polished interface.

Just to say that I love your "nyaa" thing. And I'm not even a torrent super user !!! Hope that with enough votes this tool could be adopted into an official Arch package.

I love these "new" ratatui "things" !!! And your "nyaa". But ... hhmmm ... maybe you should choose another unique name. It's gonna be confusing. ??? "nyaa-tui" ??? "nyaarr" ??? "nyaarr-tui ???

Anyway. What a nice interface. Doesnt take too much time to "get it". Very well thought. Responsive, doesnt crash.

Nice default sane keybindings, and you ship the README inside.

You could add to the README examples configuring different cli/tui "famous" torrent client. Transmission-cli, rtorrent, aria2c, rqbit, etc.

Like,

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

[client.qBittorrent]
base_url = "http://localhost:8080"
username = "admin"
password = "adminadmin"

Have you heard of "rqbit" ? It's also on the Arch official packages.

I'm actually using the binary tar.gz released on github. Because I dont want Rust and Cargo and megabytes on my PC just to compile it.

Maybe you could do an AUR "nyaa-bin" PKGBUILD also ?

Also. I think the source archive is missing the extension (or is it the crates.io server ???),

Sources (1)

  • nyaa-0.6.3.tar.gz

But

9  source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")

Points to

https://static.crates.io/crates/nyaa/nyaa-0.6.3.crate

So if you manually "wget https://static.crates.io/crates/nyaa/nyaa-0.6.3.crate" you get a .crate file. But it should be a tar.gz file.

I plan to do a more indepth review and suggestions.

In the mean time keep up the good work.