fix: correct parsing of audio release date property

Read full date from ffmpeg probe.
This commit is contained in:
sel10ut 2024-03-14 12:54:53 +03:00
parent fab3151679
commit 1236bb298c
No known key found for this signature in database
GPG key ID: D0B72B1CF829F342

View file

@ -228,6 +228,7 @@ namespace MediaBrowser.Providers.MediaInfo
audio.RunTimeTicks = mediaInfo.RunTimeTicks;
audio.Size = mediaInfo.Size;
audio.PremiereDate = mediaInfo.PremiereDate;
if (!audio.IsLocked)
{
@ -370,7 +371,6 @@ namespace MediaBrowser.Providers.MediaInfo
{
var year = Convert.ToInt32(tags.Year);
audio.ProductionYear = year;
audio.PremiereDate = new DateTime(year, 01, 01);
}
if (!audio.LockedFields.Contains(MetadataField.Genres))