jellyfin-server/MediaBrowser.LocalMetadata/Savers/PersonXmlSaver.cs

58 lines
1.9 KiB
C#
Raw Normal View History

using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Library;
using System.Collections.Generic;
2013-06-23 17:56:11 +00:00
using System.IO;
2016-10-30 07:02:23 +00:00
using System.Xml;
2016-10-25 19:02:04 +00:00
using MediaBrowser.Model.IO;
using Microsoft.Extensions.Logging;
2016-10-30 07:02:23 +00:00
using MediaBrowser.Model.Xml;
2013-06-23 17:56:11 +00:00
namespace MediaBrowser.LocalMetadata.Savers
2013-06-23 17:56:11 +00:00
{
2016-11-11 17:33:10 +00:00
///// <summary>
///// Class PersonXmlSaver
///// </summary>
//public class PersonXmlSaver : BaseXmlSaver
//{
// public override bool IsEnabledFor(IHasMetadata item, ItemUpdateType updateType)
// {
// if (!item.SupportsLocalMetadata)
// {
// return false;
// }
// return item is Person && updateType >= ItemUpdateType.MetadataDownload;
// }
// protected override List<string> GetTagsUsed()
// {
// var list = new List<string>
// {
// "PlaceOfBirth"
// };
// return list;
// }
// protected override void WriteCustomElements(IHasMetadata item, XmlWriter writer)
// {
// var person = (Person)item;
// if (person.ProductionLocations.Count > 0)
// {
// writer.WriteElementString("PlaceOfBirth", person.ProductionLocations[0]);
// }
// }
// protected override string GetLocalSavePath(IHasMetadata item)
// {
// return Path.Combine(item.Path, "person.xml");
// }
// public PersonXmlSaver(IFileSystem fileSystem, IServerConfigurationManager configurationManager, ILibraryManager libraryManager, IUserManager userManager, IUserDataManager userDataManager, ILogger logger, IXmlReaderSettingsFactory xmlReaderSettingsFactory) : base(fileSystem, configurationManager, libraryManager, userManager, userDataManager, logger, xmlReaderSettingsFactory)
// {
// }
//}
2013-06-23 17:56:11 +00:00
}