aboutsummaryrefslogtreecommitdiff
path: root/Emby.Naming/Common
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Naming/Common')
-rw-r--r--Emby.Naming/Common/EpisodeExpression.cs13
-rw-r--r--Emby.Naming/Common/MediaType.cs1
-rw-r--r--Emby.Naming/Common/NamingOptions.cs3
3 files changed, 5 insertions, 12 deletions
diff --git a/Emby.Naming/Common/EpisodeExpression.cs b/Emby.Naming/Common/EpisodeExpression.cs
index 3b9687c60..fd85bf76a 100644
--- a/Emby.Naming/Common/EpisodeExpression.cs
+++ b/Emby.Naming/Common/EpisodeExpression.cs
@@ -1,12 +1,13 @@
-using System.Text.RegularExpressions;
using System;
+using System.Text.RegularExpressions;
namespace Emby.Naming.Common
{
public class EpisodeExpression
{
private string _expression;
- public string Expression { get { return _expression; } set { _expression = value; _regex = null; } }
+ public string Expression { get => _expression;
+ set { _expression = value; _regex = null; } }
public bool IsByDate { get; set; }
public bool IsOptimistic { get; set; }
@@ -16,13 +17,7 @@ namespace Emby.Naming.Common
public string[] DateTimeFormats { get; set; }
private Regex _regex;
- public Regex Regex
- {
- get
- {
- return _regex ?? (_regex = new Regex(Expression, RegexOptions.IgnoreCase | RegexOptions.Compiled));
- }
- }
+ public Regex Regex => _regex ?? (_regex = new Regex(Expression, RegexOptions.IgnoreCase | RegexOptions.Compiled));
public EpisodeExpression(string expression, bool byDate)
{
diff --git a/Emby.Naming/Common/MediaType.cs b/Emby.Naming/Common/MediaType.cs
index 2a3d433cf..49cc9ee39 100644
--- a/Emby.Naming/Common/MediaType.cs
+++ b/Emby.Naming/Common/MediaType.cs
@@ -1,4 +1,3 @@
-
namespace Emby.Naming.Common
{
public enum MediaType
diff --git a/Emby.Naming/Common/NamingOptions.cs b/Emby.Naming/Common/NamingOptions.cs
index 014f4ebde..2ef0208ba 100644
--- a/Emby.Naming/Common/NamingOptions.cs
+++ b/Emby.Naming/Common/NamingOptions.cs
@@ -1,8 +1,7 @@
-using Emby.Naming.Video;
-using System.Collections.Generic;
using System;
using System.Linq;
using System.Text.RegularExpressions;
+using Emby.Naming.Video;
namespace Emby.Naming.Common
{