Files
ersatztv/ErsatzTV.Scanner/Core/Metadata/Nfo/NfoReaderBase.cs
T
Jason DoveandGitHub 9479806cb0 scanner refactoring and other cleanup (#1082)
* move subtitles provider into scanner

* move more stuff into scanner

* move nfo into scanner

* add scan subcommand

* fix a bunch of nfo build warnings

* more subcommands

* fix warnings

* cleanup logging

* remove unused code

* cleanup old ffmpeg stuff

* rename complex filter

* refactor wrapped segmenter
2022-12-31 10:57:20 -06:00

25 lines
742 B
C#

using System.Text.RegularExpressions;
using System.Xml;
namespace ErsatzTV.Scanner.Core.Metadata.Nfo;
public abstract partial class NfoReaderBase
{
protected static readonly byte[] Buffer = new byte[8 * 1024 * 1024];
protected static readonly Regex Pattern = ControlCharacters();
protected static readonly XmlReaderSettings Settings =
new()
{
Async = true,
ConformanceLevel = ConformanceLevel.Fragment,
ValidationType = ValidationType.None,
CheckCharacters = false,
IgnoreProcessingInstructions = true,
IgnoreComments = true
};
[GeneratedRegex("[\\p{C}-[\\r\\n\\t]]+")]
private static partial Regex ControlCharacters();
}