mirror of
https://github.com/Radarr/Radarr
synced 2026-05-07 11:51:00 +02:00
Refactor ImportListSyncService to adjust auto-import logic
This commit is contained in:
parent
694ecf6da0
commit
45a8537dc4
1 changed files with 7 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ private void SyncList(ImportListDefinition definition)
|
|||
|
||||
private void ProcessMovieReport(ImportListDefinition importList, ImportListMovie report, List<ImportListExclusion> listExclusions, List<int> dbMovies, List<Movie> moviesToAdd)
|
||||
{
|
||||
if (report.TmdbId == 0 || !importList.EnableAuto)
|
||||
if (report.TmdbId == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
@ -89,6 +89,12 @@ private void ProcessMovieReport(ImportListDefinition importList, ImportListMovie
|
|||
return;
|
||||
}
|
||||
|
||||
// Now that retro-tags are applied, end if auto import is disabled
|
||||
if (!importList.EnableAuto)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Check to see if movie excluded
|
||||
var excludedMovie = listExclusions.SingleOrDefault(s => s.TmdbId == report.TmdbId);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue