From 8ee7c3457f0d883d964a50c88707dfaa233339e6 Mon Sep 17 00:00:00 2001 From: aljohn92 <16975578+aljohn92@users.noreply.github.com> Date: Mon, 2 Nov 2020 20:19:24 -0500 Subject: [PATCH] Limit skip_missing to radarr (#58) --- README.md | 4 ++-- index.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index db60fa6..000d8c4 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Syncs two Radarr/Sonarr/Lidarr servers through the web API. Useful for syncing a * Supports Docker for multiple instances * Can set interval for syncing * Support two way sync (one way by default) -* Skip content with missing files +* Skip content with missing files (Radarr only) * Set language profiles (Sonarr v3 only) * Filter syncing by content file quality (Radarr only) * Filter syncing by tags (Sonarr/Radarr v3 only) @@ -77,7 +77,7 @@ Syncs two Radarr/Sonarr/Lidarr servers through the web API. Useful for syncing a [general] sync_bidirectionally = 1 # sync from instance A to B **AND** instance B to A auto_search = 0 # search is automatically started on new content - disable by setting to 0 (default 1) - skip_missing = 1 # content with missing files are skipped on sync - disable by setting to 0 (default 1) + skip_missing = 1 # content with missing files are skipped on sync - disable by setting to 0 (default 1) (Radarr only) monitor_new_content = 0 # set to 0 to never monitor new content synced or to 1 to always monitor new content synced (default 1) test_run = 1 # enable test mode - will run through sync program but will not actually sync content ``` diff --git a/index.py b/index.py index 49fd935..3b25447 100644 --- a/index.py +++ b/index.py @@ -208,7 +208,7 @@ def sync_servers(instanceA_contents, instanceB_language_id, instanceB_contentIds instance_path = instanceB_path or dirname(content.get('path')) # if skipping missing files, we want to skip any that don't have files - if skip_missing: + if is_radarr and skip_missing: content_has_file = content.get('hasFile') if not content_has_file: logging.debug(f'Skipping content {title} - file missing')