You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/apps/radarr.html
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ <h1>Radarr Documentation</h1>
57
57
58
58
<p>Radarr is an automated movie downloading and management application. Huntarr integrates with your existing Radarr instance to automatically search for missing movies and quality upgrades that Radarr doesn't actively hunt for.</p>
<p>When enabled, Huntarr will only search for movies that are marked as "Monitored" in Radarr. This prevents searches for movies you've intentionally unmonitored.</p>
<p>When enabled, Huntarr will skip movies with future release dates (based on the Release Date field). When disabled, Huntarr will process all movies regardless of release date.</p>
172
+
<p>When enabled, Huntarr will skip movies with future release dates (based on the Release Date field) for both missing movie searches and quality upgrades. When disabled, Huntarr will process all movies regardless of release date.</p>
173
173
174
174
<divclass="alert alert-info">
175
175
<strong>📋 Release Date Logic Simplified:</strong> As of Huntarr 7.6.0+, we've simplified release date filtering to only use the <strong>Release Date</strong> field from Radarr. This field is the most reliable and consistently populated date field in the Radarr API.
@@ -193,7 +193,7 @@ <h5>Why We Simplified Release Date Detection</h5>
193
193
</ul>
194
194
195
195
<h5>Release Date Logic Flow</h5>
196
-
<p>The simplified logic works as follows:</p>
196
+
<p>The simplified logic works as follows for both missing movie searches and quality upgrades:</p>
197
197
<ul>
198
198
<li><strong>Skip Future Releases = OFF:</strong> Process all movies regardless of release date (useful if you want cam rips, theater recordings, etc.)</li>
199
199
<li><strong>Skip Future Releases = ON:</strong> Only process movies with past release dates, with optional control over movies with missing dates</li>
@@ -223,7 +223,7 @@ <h5>Release Date Logic Flow</h5>
<h4id="process-no-release-dates"><iclass="fas fa-question-circle" style="margin-right: 8px; color: #ff6b35;"></i>Process No Release Dates</h4>
226
-
<p>In rare cases, some movies in your Radarr library may have missing or invalid release date information. By default, Huntarr will <strong>skip</strong> these movies to avoid potentially downloading unknown or poor quality content.</p>
226
+
<p>In rare cases, some movies in your Radarr library may have missing or invalid release date information. By default, Huntarr will <strong>skip</strong> these movies for both missing searches and quality upgrades to avoid potentially downloading unknown or poor quality content.</p>
227
227
228
228
<p>When this option is enabled, Huntarr will process movies that have:</p>
Copy file name to clipboardExpand all lines: frontend/static/js/settings_forms.js
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -239,22 +239,22 @@ const SettingsForms = {
239
239
</div>
240
240
<div class="instance-content">
241
241
<div class="setting-item">
242
-
<label for="radarr-name-${index}"><a href="https://huntarr.io/threads/name-field.18/" class="info-icon" title="Learn more about naming your Radarr instance" target="_blank" rel="noopener"><i class="fas fa-info-circle"></i></a>Name:</label>
242
+
<label for="radarr-name-${index}"><a href="https://plexguide.github.io/Huntarr.io/apps/radarr.html#instances" class="info-icon" title="Learn more about naming your Radarr instance" target="_blank" rel="noopener"><i class="fas fa-info-circle"></i></a>Name:</label>
243
243
<input type="text" id="radarr-name-${index}" name="name" value="${instance.name||''}" placeholder="Friendly name for this Radarr instance">
244
244
<p class="setting-help">Friendly name for this Radarr instance</p>
245
245
</div>
246
246
<div class="setting-item">
247
-
<label for="radarr-url-${index}"><a href="https://huntarr.io/threads/url.19/" class="info-icon" title="Learn more about Radarr URL configuration" target="_blank" rel="noopener"><i class="fas fa-info-circle"></i></a>URL:</label>
247
+
<label for="radarr-url-${index}"><a href="https://plexguide.github.io/Huntarr.io/apps/radarr.html#instances" class="info-icon" title="Learn more about Radarr URL configuration" target="_blank" rel="noopener"><i class="fas fa-info-circle"></i></a>URL:</label>
<p class="setting-help">Base URL for Radarr (e.g., http://localhost:7878)</p>
250
250
</div>
251
251
<div class="setting-item">
252
-
<label for="radarr-key-${index}"><a href="https://huntarr.io/threads/api-key.20/" class="info-icon" title="Learn more about finding your Radarr API key" target="_blank" rel="noopener"><i class="fas fa-info-circle"></i></a>API Key:</label>
252
+
<label for="radarr-key-${index}"><a href="https://plexguide.github.io/Huntarr.io/apps/radarr.html#instances" class="info-icon" title="Learn more about finding your Radarr API key" target="_blank" rel="noopener"><i class="fas fa-info-circle"></i></a>API Key:</label>
253
253
<input type="text" id="radarr-key-${index}" name="api_key" value="${instance.api_key||''}" placeholder="API key for Radarr">
254
254
<p class="setting-help">API key for Radarr</p>
255
255
</div>
256
256
<div class="setting-item">
257
-
<label for="radarr-enabled-${index}"><a href="https://huntarr.io/threads/enable-toggle.21/" class="info-icon" title="Learn more about enabling/disabling instances" target="_blank" rel="noopener"><i class="fas fa-info-circle"></i></a>Enabled:</label>
257
+
<label for="radarr-enabled-${index}"><a href="https://plexguide.github.io/Huntarr.io/apps/radarr.html#instances" class="info-icon" title="Learn more about enabling/disabling instances" target="_blank" rel="noopener"><i class="fas fa-info-circle"></i></a>Enabled:</label>
<label for="radarr_hunt_missing_movies"><a href="https://huntarr.io" class="info-icon" title="Learn more about missing movies search" target="_blank" rel="noopener"><i class="fas fa-info-circle"></i></a>Missing Search:</label>
293
+
<label for="radarr_hunt_missing_movies"><a href="https://plexguide.github.io/Huntarr.io/apps/radarr.html#search-settings" class="info-icon" title="Learn more about missing movies search" target="_blank" rel="noopener"><i class="fas fa-info-circle"></i></a>Missing Search:</label>
<p class="setting-help">Time in seconds between processing cycles</p>
306
306
</div>
307
307
<div class="setting-item">
308
-
<label for="radarr_hourly_cap"><a href="#" class="info-icon" title="Maximum API requests per hour for this app" target="_blank" rel="noopener"><i class="fas fa-info-circle"></i></a>API Cap - Hourly:</label>
308
+
<label for="radarr_hourly_cap"><a href="https://plexguide.github.io/Huntarr.io/apps/radarr.html#search-settings" class="info-icon" title="Maximum API requests per hour for this app" target="_blank" rel="noopener"><i class="fas fa-info-circle"></i></a>API Cap - Hourly:</label>
<p class="setting-help">Maximum API requests per hour (helps prevent rate limiting)</p>
311
311
<p class="setting-help" style="color: #cc0000; font-weight: bold;">Setting this too high will risk your accounts being banned! You have been warned!</p>
@@ -315,7 +315,7 @@ const SettingsForms = {
315
315
<div class="settings-group">
316
316
<h3>Additional Options</h3>
317
317
<div class="setting-item">
318
-
<label for="radarr_monitored_only"><a href="/Huntarr.io/docs/#/configuration?id=monitored-only" class="info-icon" title="Learn more about monitored only option" target="_blank" rel="noopener"><i class="fas fa-info-circle"></i></a>Monitored Only:</label>
318
+
<label for="radarr_monitored_only"><a href="https://plexguide.github.io/Huntarr.io/apps/radarr.html#monitored-only" class="info-icon" title="Learn more about monitored only option" target="_blank" rel="noopener"><i class="fas fa-info-circle"></i></a>Monitored Only:</label>
radarr_logger.info(f"Found {len(upgrade_eligible_data)} movies eligible for upgrade.")
67
70
71
+
# Skip future releases if enabled (matching missing movies logic)
72
+
ifskip_future_releases:
73
+
radarr_logger.info("Filtering out future releases from upgrades...")
74
+
now=datetime.datetime.now(datetime.timezone.utc)
75
+
76
+
filtered_movies= []
77
+
skipped_count=0
78
+
no_date_count=0
79
+
formovieinupgrade_eligible_data:
80
+
movie_id=movie.get('id')
81
+
movie_title=movie.get('title', 'Unknown Title')
82
+
release_date_str=movie.get('releaseDate')
83
+
84
+
ifrelease_date_str:
85
+
release_date=parse_date(release_date_str)
86
+
ifrelease_date:
87
+
ifrelease_date>now:
88
+
# Movie has a future release date, skip it
89
+
radarr_logger.debug(f"Skipping future movie ID {movie_id} ('{movie_title}') for upgrade - releaseDate is in the future: {release_date}")
90
+
skipped_count+=1
91
+
continue
92
+
else:
93
+
# Movie release date is in the past, include it
94
+
radarr_logger.debug(f"Movie ID {movie_id} ('{movie_title}') releaseDate is in the past: {release_date}, including in upgrade search")
95
+
filtered_movies.append(movie)
96
+
else:
97
+
# Could not parse release date, treat as no date
98
+
radarr_logger.debug(f"Movie ID {movie_id} ('{movie_title}') has unparseable releaseDate '{release_date_str}' for upgrade - treating as no release date")
radarr_logger.debug(f"Movie ID {movie_id} ('{movie_title}') has no valid release date but process_no_release_dates is enabled - including in upgrade search")
101
+
filtered_movies.append(movie)
102
+
else:
103
+
radarr_logger.debug(f"Skipping movie ID {movie_id} ('{movie_title}') for upgrade - no valid release date and process_no_release_dates is disabled")
radarr_logger.debug(f"Movie ID {movie_id} ('{movie_title}') has no releaseDate field but process_no_release_dates is enabled - including in upgrade search")
109
+
filtered_movies.append(movie)
110
+
else:
111
+
radarr_logger.debug(f"Skipping movie ID {movie_id} ('{movie_title}') for upgrade - no releaseDate field and process_no_release_dates is disabled")
112
+
no_date_count+=1
113
+
114
+
radarr_logger.info(f"Filtered out {skipped_count} future releases and {no_date_count} movies with no release dates from upgrades")
115
+
radarr_logger.debug(f"After filtering: {len(filtered_movies)} movies remaining from {len(upgrade_eligible_data)} original")
116
+
upgrade_eligible_data=filtered_movies
117
+
else:
118
+
radarr_logger.info("Skip future releases is disabled - processing all movies for upgrades regardless of release date")
119
+
120
+
ifnotupgrade_eligible_data:
121
+
radarr_logger.info("No movies eligible for upgrade left to process after filtering future releases.")
122
+
returnFalse
123
+
68
124
# Filter out already processed movies using stateful management
0 commit comments