aboutsummaryrefslogtreecommitdiff
path: root/Emby.Naming
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2020-04-21 12:11:55 +0200
committerBond_009 <bond.009@outlook.com>2020-04-21 12:11:55 +0200
commit735e7c3f7d505b8e00359a8f9498cde7906a0b83 (patch)
tree61344108fde3eead0117b50c50d63a03a40e85bb /Emby.Naming
parent07143bcb68f010c59274bbe8e7c0e03a843e916b (diff)
Fix VideoResolver and tests
Diffstat (limited to 'Emby.Naming')
-rw-r--r--Emby.Naming/Video/VideoResolver.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Naming/Video/VideoResolver.cs b/Emby.Naming/Video/VideoResolver.cs
index 0b75a8cce..a26c4bbc6 100644
--- a/Emby.Naming/Video/VideoResolver.cs
+++ b/Emby.Naming/Video/VideoResolver.cs
@@ -89,14 +89,14 @@ namespace Emby.Naming.Video
if (parseName)
{
var cleanDateTimeResult = CleanDateTime(name);
+ name = cleanDateTimeResult.Name;
+ year = cleanDateTimeResult.Year;
if (extraResult.ExtraType == null
&& TryCleanString(cleanDateTimeResult.Name, out ReadOnlySpan<char> newName))
{
name = newName.ToString();
}
-
- year = cleanDateTimeResult.Year;
}
return new VideoFileInfo