Skip to content

Commit

Permalink
Added a "Is Missing" smart list
Browse files Browse the repository at this point in the history
  • Loading branch information
maforget committed Apr 10, 2024
1 parent d7c5866 commit ef5783d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions ComicRack.Engine/ComicRack.Engine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@
<Compile Include="Metadata\ComicBook\Matcher\ComicBookInkerMatcher.cs" />
<Compile Include="Metadata\ComicBook\Comparer\ComicBookISBNComparer.cs" />
<Compile Include="Metadata\ComicBook\Matcher\ComicBookISBNMatcher.cs" />
<Compile Include="Metadata\ComicBook\Matcher\ComicBookIsMissingMatcher.cs" />
<Compile Include="Metadata\ComicBook\Matcher\ComicBookIsLinkedMatcher.cs" />
<Compile Include="Metadata\ComicBook\Comparer\ComicBookLanguageComparer.cs" />
<Compile Include="Metadata\ComicBook\Matcher\ComicBookLanguageMatcher.cs" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using System.ComponentModel;
using System.IO;

namespace cYo.Projects.ComicRack.Engine
{
[Serializable]
[Description("Is Missing")]
[ComicBookMatcherHint("FileIsMissing", DisableOptimizedUpdate = true)]
public class ComicBookIsMissingMatcher : ComicBookYesNoMatcher
{
protected override YesNo GetValue(ComicBook comicBook)
{
if (comicBook.IsLinked && comicBook.FileIsMissing)
return YesNo.Yes;

return YesNo.No;
}
}
}

0 comments on commit ef5783d

Please sign in to comment.