Skip to content

Commit

Permalink
added xargs to example commads
Browse files Browse the repository at this point in the history
  • Loading branch information
FarisHijazi committed Jul 11, 2022
1 parent 45fcd7e commit aeeea42
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Outputs list of results containing magnet links from a [rarbg.to](rarbg.to) sear

![usage](assets/usage.gif)

You can even pipe `|` the magnet links to your favorite bittorrent client

![usage pipe](assets/usage_pipe_to_client.gif)

## Installation

From PyPi (stable)
Expand Down Expand Up @@ -48,8 +52,8 @@ The program is pipe-friendly, so you could use this tool in conjunction with the
The `--magnet` option is a convenience option instead of filtering it every time with `jq`, the bellow 2 lines are equivalent:

```sh
rarbgcli "the stranger things 3" --category movies --limit 10 | jq .[].magnet | bittorrent
rarbgcli "the stranger things 3" --category movies --limit 10 --magnet | bittorrent
rarbgcli "the stranger things 3" --category movies --limit 10 | jq .[].magnet | xargs qbittorrent
rarbgcli "the stranger things 3" --category movies --limit 10 --magnet | xargs qbittorrent
```

## CAPTCHA
Expand Down
Binary file added assets/usage_pipe_to_client.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions rarbgcli/rarbgcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@
The --magnet option is a convenience option instead of filtering it every time with `jq`, the bellow 2 lines are equivalent:
The --magnet option is a convenience option instead of filtering it every time with `jq`, the bellow 2 lines are equivalent:
$ rarbgcli "the stranger things 3" --category movies --limit 10 | jq .[].magnet | qbittorrent
$ rarbgcli "the stranger things 3" --category movies --limit 10 --magnet | qbittorrent
$ rarbgcli "the stranger things 3" --category movies --limit 10 | jq .[].magnet | xargs qbittorrent
$ rarbgcli "the stranger things 3" --category movies --limit 10 --magnet | xargs qbittorrent
"""

Expand Down

0 comments on commit aeeea42

Please sign in to comment.