|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
|
using Emby.Naming.Audio;
|
|
|
|
|
using Emby.Naming.Common;
|
|
|
|
|
|
|
|
|
@ -52,11 +53,6 @@ namespace Emby.Naming.Video
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
// Currently unreachable code if new rule.MediaType is desired add if clause with proper tests
|
|
|
|
|
throw new InvalidOperationException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rule.RuleType == ExtraRuleType.Filename)
|
|
|
|
|
{
|
|
|
|
@ -80,9 +76,6 @@ namespace Emby.Naming.Video
|
|
|
|
|
}
|
|
|
|
|
else if (rule.RuleType == ExtraRuleType.Regex)
|
|
|
|
|
{
|
|
|
|
|
// Currently unreachable code if new rule.MediaType is desired add if clause with proper tests
|
|
|
|
|
throw new InvalidOperationException();
|
|
|
|
|
/*
|
|
|
|
|
var filename = Path.GetFileName(path);
|
|
|
|
|
|
|
|
|
|
var regex = new Regex(rule.Token, RegexOptions.IgnoreCase);
|
|
|
|
@ -92,7 +85,6 @@ namespace Emby.Naming.Video
|
|
|
|
|
result.ExtraType = rule.ExtraType;
|
|
|
|
|
result.Rule = rule;
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
}
|
|
|
|
|
else if (rule.RuleType == ExtraRuleType.DirectoryName)
|
|
|
|
|
{
|
|
|
|
|