|
|
|
@ -153,7 +153,7 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
|
|
|
|
{
|
|
|
|
|
return GetLocalSavePath(item);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the save path.
|
|
|
|
|
/// </summary>
|
|
|
|
@ -184,7 +184,7 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
|
|
|
|
public void Save(IHasMetadata item, CancellationToken cancellationToken)
|
|
|
|
|
{
|
|
|
|
|
var path = GetSavePath(item);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using (var memoryStream = new MemoryStream())
|
|
|
|
|
{
|
|
|
|
|
Save(item, memoryStream, path);
|
|
|
|
@ -275,6 +275,10 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
catch (XmlException ex)
|
|
|
|
|
{
|
|
|
|
|
Logger.ErrorException("Error reading existng nfo", ex);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
writer.WriteEndElement();
|
|
|
|
|
|
|
|
|
@ -466,8 +470,8 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
|
|
|
|
{
|
|
|
|
|
writer.WriteElementString("originaltitle", hasOriginalTitle.OriginalTitle ?? string.Empty);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var directors = item.People
|
|
|
|
|
.Where(i => IsPersonType(i, PersonType.Director))
|
|
|
|
|
.Select(i => i.Name)
|
|
|
|
@ -978,7 +982,7 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
|
|
|
|
{
|
|
|
|
|
writer.WriteElementString("type", person.Type);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (person.SortOrder.HasValue)
|
|
|
|
|
{
|
|
|
|
|
writer.WriteElementString("sortorder", person.SortOrder.Value.ToString(UsCulture));
|
|
|
|
|