* 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
25 lines
742 B
C#
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();
|
|
}
|