Giter Site home page Giter Site logo

yarr's Introduction

Yarr

Like a pirate but also cause sonArr and radArr

The Yarr tool is a CLI tool that allows you to interact with Sonarr and Radarr.

Installation

To install the program to the default location (/usr/local/bin) run the following command. This may require sudo depending on your system.

make install_mac_intel
or
make install_mac_silicon

Custom location

Alternatively you can install to a custom location. Run one of the following commands to build the tool for your platform

  • make publish_mac_intel - Build for Mac Intel
  • make publish_mac_silicon - Build for Mac Silicon
  • make publish_win - Build for Windows
  • make publish_linux - Build for Linux

Then copy the binary to your desired location and add it to your $PATH variable if needed.

Configuration

Run either of the following commands to input your Sonarr/Radarr configuration (the "configure configure" is not a typo)

Yarr configure configure
Yarr c c

You will be prompted for the required information. The configuration will be stored in ~/.config/yarr/config.json or %APPDATA%\.config\yarr\config.json on Windows.

Usage

Search for a series

Yarr sonarr search "The Simpsons"
Yarr s s "The Simpsons"

Search for a movie

Yarr radarr search "Terminator"
Yarr r s "The Simpsons"

Developer's corner

Generate Sonarr API client

npx openapi-generator-cli \
    generate -g csharp-netcore \
    -i sonarr.json \ 
    -o sonarrgen \
     --additional-properties packageName=Sonarr.OpenAPI

copy the generated files to the project

Fixing the generated code for the Sonarr API

An issue with the sonarr api is that it requires a languageProfileId to be set when adding/updating series. This properties has been deprecated

  • This requires the manual removal of the ShouldSerializeLanguageProfileId() from SeriesResource.cs
  • Add #pragma warning disable CS0612 // Type or member is obsolete to the top of the file to get rid of the annoying compiler warnings

Generate Radarr API client

npx openapi-generator-cli \
    generate -g csharp-netcore \
    -i radarr.json \ 
    -o radarrgen \
     --additional-properties packageName=Radarr.OpenAPI

yarr's People

Contributors

grimurjonsson 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.