mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-22 22:14:44 -04:00
Improved detection of hashed releases.
- Added specific rejection code for 32 random characters to ignore all md5 and mixed-case hashes. - Added NZBGeek hash format. - Removed -RP from Release Group. - Added test and fix for reversed title. Currently matching it based on a couple of patterns.
This commit is contained in:
@@ -48,6 +48,14 @@ namespace NzbDrone.Common
|
||||
return stringBuilder.ToString().Normalize(NormalizationForm.FormC);
|
||||
}
|
||||
|
||||
public static string TrimEnd(this string text, string postfix)
|
||||
{
|
||||
if (text.EndsWith(postfix))
|
||||
text = text.Substring(0, text.Length - postfix.Length);
|
||||
|
||||
return text;
|
||||
}
|
||||
|
||||
public static string CleanSpaces(this string text)
|
||||
{
|
||||
return CollapseSpace.Replace(text, " ").Trim();
|
||||
|
||||
Reference in New Issue
Block a user