mirror of
https://github.com/lidarr/Lidarr
synced 2025-01-31 11:22:06 +00:00
Encypted errors be gone!
Fixed: Stop logging errors when parsing encrypted posts
This commit is contained in:
parent
79c1d6a792
commit
fb5b7a9277
2 changed files with 9 additions and 1 deletions
|
@ -396,5 +396,12 @@ public void parse_header(string title, string expected)
|
|||
{
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -140,7 +140,8 @@ internal static EpisodeParseResult ParseTitle(string title)
|
|||
}
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue