allow editing of ibn items
This commit is contained in:
parent
5217a3cc0d
commit
2b87ab1548
|
@ -312,6 +312,17 @@ namespace MediaBrowser.Controller.Providers
|
|||
break;
|
||||
}
|
||||
|
||||
case "LockData":
|
||||
{
|
||||
var val = reader.ReadElementContentAsString();
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(val))
|
||||
{
|
||||
item.DontFetchMeta = string.Equals("true", val, StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case "Network":
|
||||
{
|
||||
foreach (var name in SplitNames(reader.ReadElementContentAsString()))
|
||||
|
|
|
@ -69,7 +69,8 @@ namespace MediaBrowser.Providers.Savers
|
|||
"Genres",
|
||||
"Studios",
|
||||
"Tags",
|
||||
"Added"
|
||||
"Added",
|
||||
"LockData"
|
||||
});
|
||||
|
||||
var position = xml.ToString().LastIndexOf("</", StringComparison.OrdinalIgnoreCase);
|
||||
|
@ -156,6 +157,8 @@ namespace MediaBrowser.Providers.Savers
|
|||
|
||||
builder.Append("<Added>" + SecurityElement.Escape(item.DateCreated.ToString(UsCulture)) + "</Added>");
|
||||
|
||||
builder.Append("<LockData>" + item.DontFetchMeta.ToString().ToLower() + "</LockData>");
|
||||
|
||||
if (!string.IsNullOrEmpty(item.DisplayMediaType))
|
||||
{
|
||||
builder.Append("<Type>" + SecurityElement.Escape(item.DisplayMediaType) + "</Type>");
|
||||
|
@ -191,7 +194,7 @@ namespace MediaBrowser.Providers.Savers
|
|||
builder.Append("<SortTitle>" + SecurityElement.Escape(item.ForcedSortName) + "</SortTitle>");
|
||||
}
|
||||
|
||||
if (item.PremiereDate.HasValue)
|
||||
if (item.PremiereDate.HasValue && !(item is Episode))
|
||||
{
|
||||
builder.Append("<PremiereDate>" + SecurityElement.Escape(item.PremiereDate.Value.ToString("yyyy-MM-dd")) + "</PremiereDate>");
|
||||
}
|
||||
|
|
|
@ -1178,7 +1178,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
|||
return item;
|
||||
}
|
||||
|
||||
return null;
|
||||
return RetrieveItem(id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue
Block a user