TUVIMEN / torge

A shell script for searching for links on torrent sites
GNU General Public License v3.0
59 stars 2 forks source link

can you add 'provider' to initial results: #7

Closed ralyodio closed 1 month ago

ralyodio commented 2 months ago
#!/bin/sh

for i in tpb lt nyaa 1337x rarbg
do
    torge "$i" --no-prompt --link-conv -s date --json "$@"
done | jq -s '[ .[].results[] ]'
~                                   

I want to see the provider so on my search UI I can group results by provider.

TUVIMEN commented 2 months ago

The field was already there.

for i in tpb lt nyaa 1337x rarbg
do
    torge "$i" --no-prompt --link-conv -s date --json "$@"
done | jq -rcs '. | map({"provider":.site,"results":.results})'
ralyodio commented 2 months ago

its not there for me:

./all.sh 'metallica discography' | jq .

I see an author which is the user who uploaded. I'm talking about the search provider.

ralyodio commented 2 months ago

Your version works though, is there anyway to pass a category to torge?

TUVIMEN commented 2 months ago

Categories are supported only for nyaa and rarbg.

ralyodio commented 2 months ago

1337x has categories too

TUVIMEN commented 2 months ago

Nonetheless categories on sites are not universal

TUVIMEN commented 2 months ago

Support for categories has been added to 1337x

ralyodio commented 2 months ago

can you add tpb too?

TUVIMEN commented 2 months ago

Done

ralyodio commented 2 months ago

thanks