klaxa / batotocrawler

Crawls Batoto and KissManga for mangas.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Detect v2 chapters.

klaxa opened this issue · comments

Would be easiest to do string matching.

I pushed an update that should attempt to fix problems related to chapter versions. Chapter versions are now detected by chapter_info() and the chapter dictionary has the integer value "version", which defaults to 1 if no chapter version was found by the regex match.

At least from quick testing, chapters numbers like "02v2" should now be reduced to just "02", thus giving the zip files the suffix "0002" instead of "02v2". Tested this with http://www.batoto.net/comic/_/comics/comic-studio-r3745.

Then there are the extremely retarded series that have both v1 and v2 both present. This is probably a much smaller issue since I've yet to find many series that does this. The code now does version comparison between chapters that have the same number and keeps the higher one. Quick testing with http://www.batoto.net/comic/_/comics/jinbe-r1292 seemed to work at least.

Test the current code and if it works proper for you, we can probably close this issue.