mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
save person Role and SortOrder in metadata refresh
This commit is contained in:
parent
317d7a9f4f
commit
a70a09fdb3
@ -1165,6 +1165,16 @@ namespace MediaBrowser.Providers.Manager
|
|||||||
{
|
{
|
||||||
person.ImageUrl = personInSource.ImageUrl;
|
person.ImageUrl = personInSource.ImageUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(personInSource.Role) && string.IsNullOrWhiteSpace(person.Role))
|
||||||
|
{
|
||||||
|
person.Role = personInSource.Role;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (personInSource.SortOrder.HasValue && !person.SortOrder.HasValue)
|
||||||
|
{
|
||||||
|
person.SortOrder = personInSource.SortOrder;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user