Wip Blacklisting dmm porn
Create adult text classifier ML Model wip - starting to write PTN in c# More work on season, show and movie parsing Remove ML project
This commit is contained in:
14
src/producer/Features/ParseTorrentTitle/Complete.cs
Normal file
14
src/producer/Features/ParseTorrentTitle/Complete.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace Producer.Features.ParseTorrentTitle;
|
||||
|
||||
public static partial class Complete
|
||||
{
|
||||
[GeneratedRegex(@"\b(NTSC|PAL)?.DVDR\b", RegexOptions.IgnoreCase, "en-GB")]
|
||||
private static partial Regex CompleteDvdExp();
|
||||
|
||||
[GeneratedRegex(@"\b(COMPLETE)\b", RegexOptions.IgnoreCase, "en-GB")]
|
||||
private static partial Regex CompleteExp();
|
||||
public static bool? IsCompleteDvd(string title) => CompleteDvdExp().IsMatch(title) ? true : null;
|
||||
|
||||
public static bool IsComplete(string title) => CompleteExp().IsMatch(title) || IsCompleteDvd(title) == true;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user