The Free Software Media System - Server Backend & API
add parsing for date with spaces, fix for underscores
scatter-dev2b5774ccf3bd
diff --git a/Emby.Naming/Common/NamingOptions.cs b/Emby.Naming/Common/NamingOptions.csindex a069da1022..0872024f54 100644--- a/Emby.Naming/Common/NamingOptions.cs+++ b/Emby.Naming/Common/NamingOptions.cs@@ -318,22 +318,24 @@ namespace Emby.Naming.Commonnew EpisodeExpression(@"[\._ -]()[Ee][Pp]_?([0-9]+)([^\\/]*)$"),// <!-- foo.E01., foo.e01. -->new EpisodeExpression(@"[^\\/]*?()\.?[Ee]([0-9]+)\.([^\\/]*)$"),- new EpisodeExpression("(?<year>[0-9]{4})[\\.-](?<month>[0-9]{2})[\\.-](?<day>[0-9]{2})", true)+ new EpisodeExpression("(?<year>[0-9]{4})[\\.-_ ](?<month>[0-9]{2})[\\.-_ ](?<day>[0-9]{2})", true){DateTimeFormats = new[]{"yyyy.MM.dd","yyyy-MM-dd",- "yyyy_MM_dd"+ "yyyy_MM_dd",+ "yyyy MM dd"}},- new EpisodeExpression(@"(?<day>[0-9]{2})[.-](?<month>[0-9]{2})[.-](?<year>[0-9]{4})", true)+ new EpisodeExpression(@"(?<day>[0-9]{2})[.-_ ](?<month>[0-9]{2})[.-_ ](?<year>[0-9]{4})", true){DateTimeFormats = new[]{"dd.MM.yyyy","dd-MM-yyyy",- "dd_MM_yyyy"+ "dd_MM_yyyy",+ "dd MM yyyy"}},