mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-15 18:53:27 +01:00
update storage of genres, studios, tags, & keywords
This commit is contained in:
@@ -932,13 +932,9 @@ namespace MediaBrowser.XbmcMetadata.Parsers
|
||||
{
|
||||
var val = reader.ReadElementContentAsString();
|
||||
|
||||
var hasKeywords = item as IHasKeywords;
|
||||
if (hasKeywords != null)
|
||||
if (!string.IsNullOrWhiteSpace(val))
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(val))
|
||||
{
|
||||
hasKeywords.AddKeyword(val);
|
||||
}
|
||||
item.AddKeyword(val);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -752,13 +752,9 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
||||
}
|
||||
}
|
||||
|
||||
var hasKeywords = item as IHasKeywords;
|
||||
if (hasKeywords != null)
|
||||
foreach (var tag in item.Keywords)
|
||||
{
|
||||
foreach (var tag in hasKeywords.Keywords)
|
||||
{
|
||||
writer.WriteElementString("plotkeyword", tag);
|
||||
}
|
||||
writer.WriteElementString("plotkeyword", tag);
|
||||
}
|
||||
|
||||
var hasAwards = item as IHasAwards;
|
||||
|
||||
Reference in New Issue
Block a user