Giter Site home page Giter Site logo

cuff's Introduction

Cuff

Query the Jackett search API from the command line.

Prefer a UI? Check out rofi-cuff

Do you use Prowlarr instead of Jackett? Check out prowlet / rofi-prowlet

Installation

Dependencies

If you are installing manually, you'll need to also install the following dependencies:

Manual

To manually install cuff just git clone this repository and place the script in your $PATH:

git clone https://github.com/loiccoyle/cuff
cd cuff
cp cuff /somewhere/in/your/PATH/

If you want completion, place the corresponding completion file somewhere your shell knows about.

Arch linux

Using your prefered AUR helper:

paru -S cuff-git

Completions

Completions for various shells can be found in the completions folder.

Usage

$ cuff -h
Query the Jackett search API from the command line.

Usage:
    cuff [OPTIONS] {search, config, indexers, categories, open}
        -h                        Show this message and exit.
        -r                        Raw output, no coloring.
        -v                        Verbosisty, up to -vv.
        -s                        Start Jackett service if not running.
        -k                        Stop Jackett service before exiting.
        -u JACKETT_URL            Jackett URL.
        -a API_KEY                Jackett API key, will query Jackett if not provided.
        -p PASSWORD               Jackett password.
    cuff search [OPTIONS] QUERY   Perform a search.
        -f FORMAT                 Output format, in jq syntax, full json output if not provided.
        -c CATEGORY               Restrict search to caregories.
        -t TRACKER                Restrict search to trackers.
                                  TRACKER must be a configured indexer.
        -s SORTKEY                Sort results by key.
    cuff indexers             List configured indexers.
    cuff categories           List torrent categories.
    cuff config               Show Jackett config (json).
    cuff open                 Open the Jackett dashboard using 'qutebrowser'.

Examples:
    Search for big buck bunny on all configured indexers.
    $ cuff search big buck bunny
    Search for big buck bunny movies/tv on tpb indexer.
    $ cuff search -c movies -c tv -t thepiratebay big buck bunny
    Search for ubuntu sorted by Seeders.
    $ cuff search -s Seeders ubuntu
    Search for ubuntu and output the title and link, format with column.
    $ cuff search -f '\(.Title)|\(.MagnetUri//.Link)' ubuntu | column -t -s"|"

Note

To use the -s and -k options to start and stop the jackett service before/after making a query, will require sudo access.

TODO

  • AUR package
  • write bash completion

cuff's People

Contributors

andreivolt avatar loiccoyle avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.