Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mangadex Invalid selection on urls with a trailing slash #65

Open
mxnemu opened this issue Aug 9, 2018 · 0 comments
Open

mangadex Invalid selection on urls with a trailing slash #65

mxnemu opened this issue Aug 9, 2018 · 0 comments

Comments

@mxnemu
Copy link

mxnemu commented Aug 9, 2018

This works: cum get https://mangadex.org/chapter/414899
This doesn't work:

cum get https://mangadex.org/chapter/414899/
==> Invalid selection "https://mangadex.org/chapter/414899/"

This is probably the responsible regex:

url_re = re.compile(
       r'(?:https?://mangadex\.(?:org|com))?/chapter/([0-9]+)'
       r'(?:/[^a-zA-Z0-9]|/?$)'
)

from: https://github.com/Hamuko/cum/blob/master/cum/scrapers/mangadex.py#L94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant