Giter Club home page Giter Club logo

radarr-sync-webhook's Introduction

Radarr Sync Webhook

Radarr Sync Webhook adds downloaded movies from a Radarr instance to another Radarr instance automatically..

Requirements

  • Two Radarr instances
  • Node.js / Docker

Usage

Webhook Setup

On your main Radarr instance, create a new webhook:

  1. Run "On Download" and "On Upgrade"
  2. URL should point to /import and specify the following query parameters:
    1. resolutions: A comma-separated whitelist of resolutions to sync. Current valid resolutions: r2160P, r1080P, r720P, r480P, unknown
    2. profile: Quality profile id to use. Get a list of profile ids from the /api/profile endpoint on the secondary instance.
    3. Example URL: http://localhost:3000/import?resolutions=r2160P,r1080P&profile=1.
  3. Method: POST

Manual methods

In addition to the /import webhook, you can also trigger syncs manually. The manual methods use the same URL parameters as the webhook.

/import/:id

Imports movie id. You can get a list of movie ids using the API.

Example: curl -XPOST http://localhost:3000/import/1?resolutions=r2160P&profile=1

/import/all

Imports all movies.

Example: curl -XPOST http://localhost:3000/import/all?resolutions=r2160P&profile=1

Installation

Node.js

Install node modules: npm install

Docker

Create Docker image:

docker create \
--name=radarr-sync \
-p 3000:3000 \
-e SRC_APIKEY=apikey \
-e DST_APIKEY=apikey \
-e SRC_ROOT="/my/UHD/Movies" \
-e DST_ROOT="/my/HD/Movies" \
-e SRC_HOST=http://localhost:7878 \
-e DST_HOST=http://localhost:9090 \
--restart unless-stopped \
radarr-sync:latest

Running

Node.js

PORT=3000 \
SRC_APIKEY=apikey \
DST_APIKEY=apikey \
SRC_ROOT="/my/UHD/Movies" \
DST_ROOT="/my/HD/Movies" \
SRC_HOST=http://localhost:7878 \
DST_HOST=http://localhost:9090 \
npm start

Docker

docker start radarr-sync

radarr-sync-webhook's People

Contributors

richardpeng avatar danialmoghaddam 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.