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.
This commit is contained in:
Joseph Milazzo 2021-06-16 10:58:50 -05:00 committed by GitHub
parent d02d2d3cb5
commit becf2ec7a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}