mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-10-28 10:48:49 -04:00
changed movie reason ternary to if chain
This commit is contained in:
1 parent
3e56044d51
commit
d23d8c7082
1 file changed
+13
-5
@@ -736,11 +736,19 @@ public sealed class Seeker : IHandler
|
||||
{
|
||||
continue;
|
||||
}
|
||||
SeekerSearchReason reason = missingIds.Contains(movieId)
|
||||
? SeekerSearchReason.Missing
|
||||
: cutoffUnmetIds.Contains(movieId)
|
||||
? SeekerSearchReason.QualityCutoffNotMet
|
||||
: SeekerSearchReason.CustomFormatScoreBelowCutoff;
|
||||
SeekerSearchReason reason;
|
||||
if (missingIds.Contains(movieId))
|
||||
{
|
||||
reason = SeekerSearchReason.Missing;
|
||||
}
|
||||
else if (cutoffUnmetIds.Contains(movieId))
|
||||
{
|
||||
reason = SeekerSearchReason.QualityCutoffNotMet;
|
||||
}
|
||||
else
|
||||
{
|
||||
reason = SeekerSearchReason.CustomFormatScoreBelowCutoff;
|
||||
}
|
||||
|
||||
searchCandidates.Add(new SeekerSearchCandidate
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user