From bd85936a6269b1ca4c2aefd78ec6dc62cee65761 Mon Sep 17 00:00:00 2001 From: Daniel Martin Gonzalez Date: Sun, 29 May 2022 01:26:35 +0200 Subject: [PATCH] New: Release Group Custom Format (#7154) --- .../Specifications/ReleaseGroupSpecification.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/NzbDrone.Core/CustomFormats/Specifications/ReleaseGroupSpecification.cs diff --git a/src/NzbDrone.Core/CustomFormats/Specifications/ReleaseGroupSpecification.cs b/src/NzbDrone.Core/CustomFormats/Specifications/ReleaseGroupSpecification.cs new file mode 100644 index 000000000..72319dad7 --- /dev/null +++ b/src/NzbDrone.Core/CustomFormats/Specifications/ReleaseGroupSpecification.cs @@ -0,0 +1,16 @@ +using NzbDrone.Core.Parser.Model; + +namespace NzbDrone.Core.CustomFormats +{ + public class ReleaseGroupSpecification : RegexSpecificationBase + { + public override int Order => 9; + public override string ImplementationName => "Release Group"; + public override string InfoLink => "https://wiki.servarr.com/radarr/settings#custom-formats-2"; + + protected override bool IsSatisfiedByWithoutNegate(ParsedMovieInfo movieInfo) + { + return MatchString(movieInfo?.ReleaseGroup); + } + } +}