mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
Create adult text classifier ML Model wip - starting to write PTN in c# More work on season, show and movie parsing Remove ML project
14 lines
567 B
C#
14 lines
567 B
C#
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;
|
|
|
|
} |