Improve comic-downloader parsing (#650)
Sometimes comic-downloader will have filenames like spawn-chapter-123. Previously we did not support the -chapter- part, this patch adds support for it.
This commit is contained in:
parent
a14ea4c9ae
commit
12f96a5504
2 changed files with 7 additions and 4 deletions
|
@ -278,9 +278,9 @@ namespace API.Parser
|
|||
new Regex(
|
||||
@"^(?<Series>.*)(?: |_)(?!\(\d{4}|\d{4}-\d{2}\))\(",
|
||||
MatchOptions, RegexTimeout),
|
||||
// spawn-123 (from https://github.com/Girbons/comics-downloader)
|
||||
// spawn-123, spawn-chapter-123 (from https://github.com/Girbons/comics-downloader)
|
||||
new Regex(
|
||||
@"^(?<Series>.+?)-(?<Chapter>\d+)",
|
||||
@"^(?<Series>.+?)-(chapter-)?(?<Chapter>\d+)",
|
||||
MatchOptions, RegexTimeout),
|
||||
// MUST BE LAST: Batman & Daredevil - King of New York
|
||||
new Regex(
|
||||
|
@ -348,9 +348,9 @@ namespace API.Parser
|
|||
new Regex(
|
||||
@"^(?!Vol)(?<Series>.+?)( |_)i(ssue)( |_) #(?<Chapter>\d*)",
|
||||
MatchOptions, RegexTimeout),
|
||||
// spawn-123 (from https://github.com/Girbons/comics-downloader )
|
||||
// spawn-123, spawn-chapter-123 (from https://github.com/Girbons/comics-downloader)
|
||||
new Regex(
|
||||
@"^(?<Series>.+?)-(?<Chapter>\d+)",
|
||||
@"^(?<Series>.+?)-(chapter-)?(?<Chapter>\d+)",
|
||||
MatchOptions, RegexTimeout),
|
||||
// Cyberpunk 2077 - Your Voice 01
|
||||
// new Regex(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue