Fallback to Folder Parsing Issue (#694)
* Fixed a bug in the scanner where we fall back to parsing from folders for poorly named files. The code was exiting early if a chapter or volume could be parsed out. * Fixed a unit test by tweaking a regex for fallback
This commit is contained in:
parent
67ed79eaa1
commit
c813d55124
2 changed files with 18 additions and 3 deletions
|
@ -226,7 +226,7 @@ namespace API.Parser
|
|||
MatchOptions, RegexTimeout),
|
||||
// Baketeriya ch01-05.zip, Akiiro Bousou Biyori - 01.jpg, Beelzebub_172_RHS.zip, Cynthia the Mission 29.rar, A Compendium of Ghosts - 031 - The Third Story_ Part 12 (Digital) (Cobalt001)
|
||||
new Regex(
|
||||
@"^(?!Vol\.?)(?<Series>.+?)( |_|-)(?<!-)(ch)?\d+-?\d*",
|
||||
@"^(?!Vol\.?)(?!Chapter)(?<Series>.+?)(\s|_|-)(?<!-)(ch|chapter)?\.?\d+-?\d*",
|
||||
MatchOptions, RegexTimeout),
|
||||
// [BAA]_Darker_than_Black_c1 (This is very greedy, make sure it's close to last)
|
||||
new Regex(
|
||||
|
@ -608,8 +608,6 @@ namespace API.Parser
|
|||
{
|
||||
ret.Chapters = parsedChapter;
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
var series = ParseSeries(folder);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue