Add support for mangapy syntax to parser (#538)

Added support for MangaPy's default naming convention to parser: vol_001-1.cbz
This commit is contained in:
Christoffer Green 2021-08-31 17:57:43 +02:00 committed by GitHub
parent 21c204d26f
commit 623105ecd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View file

@ -83,6 +83,11 @@ namespace API.Parser
@"(?<Series>.*)(\b|_|)(S(?<Volume>\d+))",
RegexOptions.IgnoreCase | RegexOptions.Compiled,
RegexTimeout),
// vol_001-1.cbz for MangaPy default naming convention
new Regex(
@"(vol_)(?<Volume>\d+)",
RegexOptions.IgnoreCase | RegexOptions.Compiled,
RegexTimeout),
};
private static readonly Regex[] MangaSeriesRegex = new[]