From becf2ec7a6cfafb1df72d8994bae8cb8056030bc Mon Sep 17 00:00:00 2001 From: Joseph Milazzo Date: Wed, 16 Jun 2021 10:58:50 -0500 Subject: [PATCH] Changed how series parsing works. Now at the end of the Parse() call, if we still haven't figured out the Series, we will default to taking the file name and cleaning it. This allows files that have no numbers to be picked up. (#310) Series Parsing now, at the end of the Parse() call if we still haven't figured out the Series, will default to taking the file name and cleaning it. This allows files that have no numbers to be picked up. --- API/Parser/Parser.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/API/Parser/Parser.cs b/API/Parser/Parser.cs index efcb6c550..e6ac20a1f 100644 --- a/API/Parser/Parser.cs +++ b/API/Parser/Parser.cs @@ -473,8 +473,11 @@ namespace API.Parser ret.Chapters = DefaultChapter; ret.Volumes = DefaultVolume; } - - + + if (string.IsNullOrEmpty(ret.Series)) + { + ret.Series = CleanTitle(fileName); + } return ret.Series == string.Empty ? null : ret; }