mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 09:59:06 -07:00
Merge pull request #11155 from sel10ut/bugfix/fix-releasedate-tag
Fix parsing of audio PremiereDate property
This commit is contained in:
commit
b6d130ae2d
@ -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,11 @@ namespace MediaBrowser.Providers.MediaInfo
|
||||
{
|
||||
var year = Convert.ToInt32(tags.Year);
|
||||
audio.ProductionYear = year;
|
||||
audio.PremiereDate = new DateTime(year, 01, 01);
|
||||
|
||||
if (!audio.PremiereDate.HasValue)
|
||||
{
|
||||
audio.PremiereDate = new DateTime(year, 01, 01);
|
||||
}
|
||||
}
|
||||
|
||||
if (!audio.LockedFields.Contains(MetadataField.Genres))
|
||||
|
Loading…
Reference in New Issue
Block a user