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.
48 lines
1.6 KiB
48 lines
1.6 KiB
namespace MediaBrowser.LocalMetadata.Savers
|
|
{
|
|
///// <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)
|
|
// {
|
|
// }
|
|
//}
|
|
}
|