mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-17 15:53:42 +01:00
update components
This commit is contained in:
@@ -179,18 +179,6 @@ namespace MediaBrowser.LocalMetadata.Parsers
|
||||
item.Name = reader.ReadElementContentAsString();
|
||||
break;
|
||||
|
||||
case "Type":
|
||||
{
|
||||
var type = reader.ReadElementContentAsString();
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(type) && !type.Equals("none", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
item.DisplayMediaType = type;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case "CriticRating":
|
||||
{
|
||||
var text = reader.ReadElementContentAsString();
|
||||
|
||||
@@ -106,7 +106,6 @@ namespace MediaBrowser.LocalMetadata.Savers
|
||||
"Trailers",
|
||||
"TVcomId",
|
||||
"TvDbId",
|
||||
"Type",
|
||||
"TVRageId",
|
||||
"Website",
|
||||
"Zap2ItId",
|
||||
@@ -308,11 +307,6 @@ namespace MediaBrowser.LocalMetadata.Savers
|
||||
writer.WriteElementString("LockedFields", string.Join("|", item.LockedFields.Select(i => i.ToString()).ToArray()));
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(item.DisplayMediaType))
|
||||
{
|
||||
writer.WriteElementString("Type", item.DisplayMediaType);
|
||||
}
|
||||
|
||||
if (item.CriticRating.HasValue)
|
||||
{
|
||||
writer.WriteElementString("CriticRating", item.CriticRating.Value.ToString(UsCulture));
|
||||
|
||||
Reference in New Issue
Block a user