diff --git a/NzbDrone.Core.Test/ParserFixture/ParserTest.cs b/NzbDrone.Core.Test/ParserFixture/ParserTest.cs index d7f65f732..bd53c5699 100644 --- a/NzbDrone.Core.Test/ParserFixture/ParserTest.cs +++ b/NzbDrone.Core.Test/ParserFixture/ParserTest.cs @@ -396,5 +396,12 @@ namespace NzbDrone.Core.Test.ParserFixture { Parser.ParseHeader(title).Should().Be(expected); } + + [TestCase("password - \"bdc435cb-93c4-4902-97ea-ca00568c3887.337\" yEnc")] + public void should_not_parse_encypted_posts(string title) + { + Parser.ParseTitle(title).Should().BeNull(); + ExceptionVerification.IgnoreWarns(); + } } } diff --git a/NzbDrone.Core/Parser.cs b/NzbDrone.Core/Parser.cs index be5df9131..467259c78 100644 --- a/NzbDrone.Core/Parser.cs +++ b/NzbDrone.Core/Parser.cs @@ -140,7 +140,8 @@ namespace NzbDrone.Core } catch (Exception e) { - Logger.ErrorException("An error has occurred while trying to parse " + title, e); + if (!title.ToLower().Contains("password") && !title.ToLower().Contains("yenc")) + Logger.ErrorException("An error has occurred while trying to parse " + title, e); } Logger.Trace("Unable to parse {0}", title);