mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 06:18:28 +01:00
fixes #397 - WB web client - Missing person metadata field
This commit is contained in:
@@ -1279,11 +1279,6 @@ namespace MediaBrowser.Controller.Entities
|
||||
throw new ArgumentNullException("location");
|
||||
}
|
||||
|
||||
if (ProductionLocations == null)
|
||||
{
|
||||
ProductionLocations = new List<string>();
|
||||
}
|
||||
|
||||
if (!ProductionLocations.Contains(location, StringComparer.OrdinalIgnoreCase))
|
||||
{
|
||||
ProductionLocations.Add(location);
|
||||
|
||||
@@ -211,6 +211,18 @@ namespace MediaBrowser.Controller.Providers
|
||||
break;
|
||||
}
|
||||
|
||||
case "PlaceOfBirth":
|
||||
{
|
||||
var val = reader.ReadElementContentAsString();
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(val))
|
||||
{
|
||||
item.ProductionLocations = new List<string> { val };
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case "Website":
|
||||
{
|
||||
var val = reader.ReadElementContentAsString();
|
||||
@@ -465,6 +477,24 @@ namespace MediaBrowser.Controller.Providers
|
||||
break;
|
||||
}
|
||||
|
||||
case "DeathDate":
|
||||
case "EndDate":
|
||||
{
|
||||
var firstAired = reader.ReadElementContentAsString();
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(firstAired))
|
||||
{
|
||||
DateTime airDate;
|
||||
|
||||
if (DateTime.TryParse(firstAired, out airDate) && airDate.Year > 1850)
|
||||
{
|
||||
item.EndDate = airDate.ToUniversalTime();
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case "TvDbId":
|
||||
var tvdbId = reader.ReadElementContentAsString();
|
||||
if (!string.IsNullOrWhiteSpace(tvdbId))
|
||||
|
||||
Reference in New Issue
Block a user