diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2020-11-11 10:47:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-11 10:47:18 +0100 |
| commit | a7b3880d0e0cff58bb28a668e4552398c08e7849 (patch) | |
| tree | eecba5e24e0bcce512511c6f8331e20d82a7794c /Emby.Naming/Video | |
| parent | b99519898d2c9e8ba3020e11892718f1eca37c66 (diff) | |
| parent | 0c45faf100d226a00c07e785aa55e22ec55bda9c (diff) | |
Merge branch 'master' into fix_and_mildly_improve_similar
Diffstat (limited to 'Emby.Naming/Video')
| -rw-r--r-- | Emby.Naming/Video/CleanDateTimeParser.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Emby.Naming/Video/CleanDateTimeParser.cs b/Emby.Naming/Video/CleanDateTimeParser.cs index 579c9e91e1..f05d540f8b 100644 --- a/Emby.Naming/Video/CleanDateTimeParser.cs +++ b/Emby.Naming/Video/CleanDateTimeParser.cs @@ -15,6 +15,11 @@ namespace Emby.Naming.Video public static CleanDateTimeResult Clean(string name, IReadOnlyList<Regex> cleanDateTimeRegexes) { CleanDateTimeResult result = new CleanDateTimeResult(name); + if (string.IsNullOrEmpty(name)) + { + return result; + } + var len = cleanDateTimeRegexes.Count; for (int i = 0; i < len; i++) { |
