aboutsummaryrefslogtreecommitdiff
path: root/Emby.Naming/Video/VideoResolver.cs
diff options
context:
space:
mode:
authorStepan <ste.martinek+git@gmail.com>2020-11-05 16:59:15 +0100
committerStepan <ste.martinek+git@gmail.com>2020-11-05 16:59:15 +0100
commit3466dc558186f435eafae9b9d3fd80621fdbd79f (patch)
tree4fe683743b38dfd411d5ed954c785473800797da /Emby.Naming/Video/VideoResolver.cs
parent57411503673c07f4130b73c578c06ccfecc4c612 (diff)
Finish coverage for Emby.Naming.Video
Diffstat (limited to 'Emby.Naming/Video/VideoResolver.cs')
-rw-r--r--Emby.Naming/Video/VideoResolver.cs28
1 files changed, 13 insertions, 15 deletions
diff --git a/Emby.Naming/Video/VideoResolver.cs b/Emby.Naming/Video/VideoResolver.cs
index b9ff90179f..fed567d03d 100644
--- a/Emby.Naming/Video/VideoResolver.cs
+++ b/Emby.Naming/Video/VideoResolver.cs
@@ -49,7 +49,7 @@ namespace Emby.Naming.Video
{
if (string.IsNullOrEmpty(path))
{
- throw new ArgumentNullException(nameof(path));
+ return null;
}
bool isStub = false;
@@ -99,20 +99,18 @@ namespace Emby.Naming.Video
}
}
- return new VideoFileInfo
- {
- Path = path,
- Container = container,
- IsStub = isStub,
- Name = name,
- Year = year,
- StubType = stubType,
- Is3D = format3DResult.Is3D,
- Format3D = format3DResult.Format3D,
- ExtraType = extraResult.ExtraType,
- IsDirectory = isDirectory,
- ExtraRule = extraResult.Rule
- };
+ return new VideoFileInfo(
+ path: path,
+ container: container,
+ isStub: isStub,
+ name: name,
+ year: year,
+ stubType: stubType,
+ is3D: format3DResult.Is3D,
+ format3D: format3DResult.Format3D,
+ extraType: extraResult.ExtraType,
+ isDirectory: isDirectory,
+ extraRule: extraResult.Rule);
}
public bool IsVideoFile(string path)