aboutsummaryrefslogtreecommitdiff
path: root/Emby.Naming/Common
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2021-11-02 20:17:49 +0100
committerGitHub <noreply@github.com>2021-11-02 20:17:49 +0100
commit2c42d75288a57c2961f257a7619e286702f4ac79 (patch)
tree2e55db056cbe0b71835c3cff2bed688b80d1171e /Emby.Naming/Common
parenta9c38870f964c760012a0134a9f739fa7f1488f5 (diff)
parentea439c5ccf7a61157544accd60109afc12dbc2d2 (diff)
Merge pull request #6027 from fredriklindberg/improve-series-matching
Diffstat (limited to 'Emby.Naming/Common')
-rw-r--r--Emby.Naming/Common/NamingOptions.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/Emby.Naming/Common/NamingOptions.cs b/Emby.Naming/Common/NamingOptions.cs
index a6a36279c..5ddcf37fe 100644
--- a/Emby.Naming/Common/NamingOptions.cs
+++ b/Emby.Naming/Common/NamingOptions.cs
@@ -373,6 +373,20 @@ namespace Emby.Naming.Common
IsOptimistic = true,
IsNamed = true
},
+
+ // Series and season only expression
+ // "the show/season 1", "the show/s01"
+ new EpisodeExpression(@"(.*(\\|\/))*(?<seriesname>.+)\/[Ss](eason)?[\. _\-]*(?<seasonnumber>[0-9]+)")
+ {
+ IsNamed = true
+ },
+
+ // Series and season only expression
+ // "the show S01", "the show season 1"
+ new EpisodeExpression(@"(.*(\\|\/))*(?<seriesname>.+)[\. _\-]+[sS](eason)?[\. _\-]*(?<seasonnumber>[0-9]+)")
+ {
+ IsNamed = true
+ },
};
EpisodeWithoutSeasonExpressions = new[]