Radarr Custom Format Sync checks Radarr history to correlate downloaded releases with the imported ones in order to put back all custom formats that might have been lost after the importing process.
Radarr custom formats are very useful for use cases such as downloading a movie in original version as soon as it's available and upgrading it once a Dual version is released. In order to work with trackers that don't have standardized namings, Jackett is able to append some information such as language codes to the release name so then Radarr can pick the best release.
The problem is that any information that Jackett adds to the release name is not reflected on the imported release once it's downloaded and imported by Radarr as Radarr only uses the filename for assigning the custom formats.
Assuming a custom format named Dual applied to movies that are both [spanish] and [english] and a release named DeadPool (2016):
DeadPool (2016) in a custom tracker and appends the language flags returning to Radarr the release name DeadPool (2016) [spanish] [english]DeadPool (2016) [spanish] [english] as it's the one that matches the Dual custom formatDeadPool (2016) so it doesn't add the Dual custom format to it.This script solves this problem, checking the custom formats of each imported movie in the Radarr library and replacing it by the custom formats of the grabbed release instead.
Optionally, it's possible to append strings to the filenames when they match a custom format. This is very useful to guarantee that, in case of reimporting the file, the custom formats won't be lost.
[Radarr]
url = http://changeme.com:3333
key = 4384803r2808rvsvj023r9fjvvd0fjv3
[Append]
english = [english]
spanish = [spanish]
dual = [dual]
[Radarr] section.RADARR_URLand RADARR_KEY (The Config.txt file will be generated automatically inside the container)APPEND_X being X the custom format name (case insensitive). For example: APPEND_ENGLISH=[english] will append [english] to file names with custom format englishRecomended to run using cron every 15 minutes or an interval of your preference.
pip install -r requirements.txt
python CustomFormatSync.py
docker run -d --name radarr-custom-format-sync \
--restart=unless-stopped \
-v /path/to/logs:/logs \
-e RADARR_URL=yourRadarrUrl \
-e RADARR_KEY=yourRadarrKey \
-e DELAY=15m \
rubasace/radarr-custom-format-sync
Content type
Image
Digest
Size
39.6 MB
Last updated
over 6 years ago
docker pull notorius28/radarr-custom-format-sync