mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-27 04:16:47 +00:00
Reduce nesting
This commit is contained in:
parent
8eaefce14e
commit
e0f513232b
1 changed files with 7 additions and 5 deletions
|
|
@ -85,12 +85,14 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||
{
|
||||
var val = GetDictionaryValue(tags, key);
|
||||
|
||||
if (!string.IsNullOrEmpty(val))
|
||||
if (string.IsNullOrEmpty(val))
|
||||
{
|
||||
if (DateTime.TryParse(val, out var i))
|
||||
{
|
||||
return i.ToUniversalTime();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
if (DateTime.TryParse(val, out var i))
|
||||
{
|
||||
return i.ToUniversalTime();
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue