mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
make nfo project portable
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System.Xml;
|
||||
using MediaBrowser.Model.Xml;
|
||||
|
||||
namespace MediaBrowser.Server.Implementations.Xml
|
||||
{
|
||||
public class XmlReaderSettingsFactory : IXmlReaderSettingsFactory
|
||||
{
|
||||
public XmlReaderSettings Create(bool enableValidation)
|
||||
{
|
||||
var settings = new XmlReaderSettings();
|
||||
|
||||
if (!enableValidation)
|
||||
{
|
||||
settings.ValidationType = ValidationType.None;
|
||||
}
|
||||
|
||||
return settings;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user