mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #5693 from Maxr1998/probe-result-tweaks
(cherry picked from commit 7978f30ff78dcf7ba5b7b27b3201f81eb851f2b3) Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
parent
95a4fc0f18
commit
9e459090ed
@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Globalization;
|
||||||
|
|
||||||
namespace MediaBrowser.MediaEncoding.Probing
|
namespace MediaBrowser.MediaEncoding.Probing
|
||||||
{
|
{
|
||||||
@ -85,13 +86,15 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||||||
{
|
{
|
||||||
var val = GetDictionaryValue(tags, key);
|
var val = GetDictionaryValue(tags, key);
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(val))
|
if (string.IsNullOrEmpty(val))
|
||||||
{
|
{
|
||||||
if (DateTime.TryParse(val, out var i))
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (DateTime.TryParse(val, DateTimeFormatInfo.CurrentInfo, DateTimeStyles.AssumeUniversal, out var i))
|
||||||
{
|
{
|
||||||
return i.ToUniversalTime();
|
return i.ToUniversalTime();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -131,6 +131,7 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||||||
info.PremiereDate = FFProbeHelpers.GetDictionaryDateTime(tags, "retaildate") ??
|
info.PremiereDate = FFProbeHelpers.GetDictionaryDateTime(tags, "retaildate") ??
|
||||||
FFProbeHelpers.GetDictionaryDateTime(tags, "retail date") ??
|
FFProbeHelpers.GetDictionaryDateTime(tags, "retail date") ??
|
||||||
FFProbeHelpers.GetDictionaryDateTime(tags, "retail_date") ??
|
FFProbeHelpers.GetDictionaryDateTime(tags, "retail_date") ??
|
||||||
|
FFProbeHelpers.GetDictionaryDateTime(tags, "date_released") ??
|
||||||
FFProbeHelpers.GetDictionaryDateTime(tags, "date");
|
FFProbeHelpers.GetDictionaryDateTime(tags, "date");
|
||||||
|
|
||||||
if (isAudio)
|
if (isAudio)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user