This is a fork of FunkyPenguin/RadarrSync, with added support for SonarrSync. It also keeps a persistent config file every time you start the container.
Example docker-compose snippet:
services:
arrsync:
build:
context: https://github.com/TeddOravec/ArrSync.git
container_name: arrsync
restart: unless-stopped
env_file:
- arrsync.env
volumes:
- "/srv/dockerdata/arrsync/config:/config"
The associated arrsync.env
(with all possible configurable environment variables) file may look as follows:
SOURCE_SONARR_URL=http://sonarr:8989
SOURCE_SONARR_KEY=<sonarr key>
SONARR_ROOT_PATH=/srv/media/TV
SOURCE_SONARR_PATH=/srv/media/TV
SOURCE_SONARR_PROFILE_NUM=5
DEST_SONARR_URL=http://sonarr4k:8989
DEST_SONARR_KEY=<sonarr4k key>
DEST_SONARR_PATH=/srv/media/TV 4K
DEST_SONARR_PROFILE_NUM=5
SOURCE_RADARR_URL=http://radarr:7878
SOURCE_RADARR_KEY=<radarr key>
SOURCE_RADARR_PATH=/srv/media/Movies
SOURCE_RADARR_PROFILE_NUM=5
DEST_RADARR_URL=http://radarr4k:7878
DEST_RADARR_KEY=<radarr4k key>
DEST_RADARR_PATH=/srv/media/Movies 4K
DEST_RADARR_PROFILE_NUM=5
On first run, the above will then populate the ini files /config/Sonarr.txt
and /config/Radarr.txt
inside the container with the specified settings.
This container is maintained by Funky Penguin's Geek Cookbook, a collection of "recipes" to run popular applications on Docker Swarm or Kubernetes, in a cheeky, geek format.
Got more details at:
A Dockerization of https://github.com/Sperryfreak01/RadarrSync, plus a few enhancments:
- Ability to rewrite path of movie on destination Raddarr instance : 39
- Ability to sync between arbitrary quality profiles on source and target instance : 38
You should use it if you use Docker for your Radarr instances, and you want to sync content (like your watchlist) between two Radarr instances, for the purposes of downloading two separate files of different quality (say, a 1080P WebDL and a 4K UHD).
- Initial release : (1 Jan 2019)
Syncs two Radarr servers through web API.
Many Plex servers choke if you try to transcode 4K files. To address this a common approach is to keep a 4k and a 1080/720 version in seperate libraries.
Radarr does not support saving files to different folder roots for different quality profiles. To save 4K files to a seperate library in plex you must run two Radarr servers. This script looks for movies with a quality setting of 4k on one server and creates the movies on a second server.
-
Edit the Config.txt file and enter your servers URLs and API keys for each server.
Example Config.txt:
[Radarr] url = https://example.com:443 key = FCKGW-RHQQ2-YXRKT-8TG6W-2B7Q8 [Radarr4k] url = http://127.0.0.1:8080 key = FCKGW-RHQQ2-YXRKT-8TG6W-2B7Q8
-
Edit 4K profile on the server that will download 1080/720p files. You want the quality profile to download the highest non-4k quality your Plex server can stream with choking.
Recomended to run using cron every 15 minutes or an interval of your preference.
python RadarSync.py
- Python 3.4 or greater
- 2x Radarr servers
- Install requirements.txt
- Ensure that the root path is the same on both servers. ie /movies