Bugfix/parser (#214)
* Fixed #211 * Fixed #213. Somehow a + 1 got removed
This commit is contained in:
parent
c8adaee3eb
commit
beca4a4de5
3 changed files with 6 additions and 2 deletions
|
|
@ -279,7 +279,7 @@ namespace API.Controllers
|
|||
if (chapterId > 0) return Ok(chapterId);
|
||||
}
|
||||
|
||||
if (volume.Number == currentVolume.Number)
|
||||
if (volume.Number == currentVolume.Number + 1)
|
||||
{
|
||||
return Ok(volume.Chapters.FirstOrDefault()?.Id);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -302,7 +302,10 @@ namespace API.Parser
|
|||
new Regex(
|
||||
@"^(?<Series>.*)(?: |_)#(?<Chapter>\d+)",
|
||||
RegexOptions.IgnoreCase | RegexOptions.Compiled),
|
||||
|
||||
// Green Worldz - Chapter 027
|
||||
new Regex(
|
||||
@"^(?!Vol)(?<Series>.*)\s?(?<!vol\. )\sChapter\s(?<Chapter>\d+(?:.\d+|-\d+)?)",
|
||||
RegexOptions.IgnoreCase | RegexOptions.Compiled),
|
||||
// Hinowa ga CRUSH! 018 (2019) (Digital) (LuCaZ).cbz, Hinowa ga CRUSH! 018.5 (2019) (Digital) (LuCaZ).cbz
|
||||
new Regex(
|
||||
@"^(?!Vol)(?<Series>.*) (?<!vol\. )(?<Chapter>\d+(?:.\d+|-\d+)?)(?: \(\d{4}\))?(\b|_|-)",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue