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.
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
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 Intelmake publish_mac_silicon
- Build for Mac Siliconmake publish_win
- Build for Windowsmake publish_linux
- Build for Linux
Then copy the binary to your desired location and add it to your $PATH variable if needed.
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.
Yarr sonarr search "The Simpsons"
Yarr s s "The Simpsons"
Yarr radarr search "Terminator"
Yarr r s "The Simpsons"
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
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()
fromSeriesResource.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
npx openapi-generator-cli \
generate -g csharp-netcore \
-i radarr.json \
-o radarrgen \
--additional-properties packageName=Radarr.OpenAPI