Stream custom live channels using your own media
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
742 B

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();
}