Coko7 / tcb-opus

A discord bot to get the latest manga chapters from TCB Scans as soon as they come out.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use Regex to always parse the URL correctly

Coko7 opened this issue · comments

commented

Sometimes, TCB change the way their URL look by adding additional parts at the end.
Despite that, here is what the URL should always look like:
https://onepiecechapters.com/chapters/{Id}/{mangaName}-chapter-{chapNum}{suffix}

The {chapNum} is the one thing we care about and it should always be an integer.