mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-19 04:34:18 +01:00
display new fields on person page
This commit is contained in:
@@ -538,8 +538,12 @@ namespace MediaBrowser.Controller.Entities
|
||||
var validChildren = new ConcurrentBag<Tuple<BaseItem, bool>>();
|
||||
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
|
||||
Parallel.ForEach(nonCachedChildren, child =>
|
||||
|
||||
var options = new ParallelOptions
|
||||
{
|
||||
};
|
||||
|
||||
Parallel.ForEach(nonCachedChildren, options, child =>
|
||||
{
|
||||
BaseItem currentChild;
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ namespace MediaBrowser.Controller.Providers.MediaInfo
|
||||
// If we don't have a ProductionYear try and get it from PremiereDate
|
||||
if (audio.PremiereDate.HasValue && !audio.ProductionYear.HasValue)
|
||||
{
|
||||
audio.ProductionYear = audio.PremiereDate.Value.Year;
|
||||
audio.ProductionYear = audio.PremiereDate.Value.ToLocalTime().Year;
|
||||
}
|
||||
|
||||
FetchGenres(audio, tags);
|
||||
|
||||
@@ -927,19 +927,19 @@ namespace MediaBrowser.Controller.Providers.Movies
|
||||
movie.OfficialRating = ourRelease.certification ?? usRelease.certification;
|
||||
if (ourRelease.release_date > new DateTime(1900, 1, 1))
|
||||
{
|
||||
movie.PremiereDate = ourRelease.release_date;
|
||||
movie.PremiereDate = ourRelease.release_date.ToUniversalTime();
|
||||
movie.ProductionYear = ourRelease.release_date.Year;
|
||||
}
|
||||
else
|
||||
{
|
||||
movie.PremiereDate = usRelease.release_date;
|
||||
movie.PremiereDate = usRelease.release_date.ToUniversalTime();
|
||||
movie.ProductionYear = usRelease.release_date.Year;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//no specific country release info at all
|
||||
movie.PremiereDate = movieData.release_date;
|
||||
movie.PremiereDate = movieData.release_date.ToUniversalTime();
|
||||
movie.ProductionYear = movieData.release_date.Year;
|
||||
}
|
||||
|
||||
|
||||
@@ -231,12 +231,12 @@ namespace MediaBrowser.Controller.Providers.Movies
|
||||
|
||||
if (DateTime.TryParseExact(searchResult.Birthday, "yyyy-MM-dd", new CultureInfo("en-US"), DateTimeStyles.None, out date))
|
||||
{
|
||||
person.PremiereDate = date;
|
||||
person.PremiereDate = date.ToUniversalTime();
|
||||
}
|
||||
|
||||
if (DateTime.TryParseExact(searchResult.Deathday, "yyyy-MM-dd", new CultureInfo("en-US"), DateTimeStyles.None, out date))
|
||||
{
|
||||
person.EndDate = date;
|
||||
person.EndDate = date.ToUniversalTime();
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(searchResult.Homepage))
|
||||
|
||||
Reference in New Issue
Block a user