-
-
Notifications
You must be signed in to change notification settings - Fork 938
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
recognize v2.mangapark URLs #1578
Conversation
Better make it a RegEx so that if they ever go further there's less to fix. |
Not sure about this... The v3 version is likely already incompatible, so accepting any subdomain won't really help (not that I know of any other they use anyway). |
It's less of a problem to have the software use RegEx to detect whatever version the domain will use (which is obviously what I meant) than someone having to come back to edit it later. It's a much more useful futureproofing than assuming they won't upgrade later.
|
The current code likely won't be able to handle further versions of the site anyway without updating, so accepting subdomains of future versions should not be done as it will lead to accepted URLs that fail to parse. The regex should be updated together with the rest of the extractor code, so whatever gets matched can also be parsed. Note that v2 is not the new version of the site. It is the old one, that gallery-dl can currently parse. So this subdomain is unlikely to change. |
You should change line 20 to |
done |
Fair enough, that makes sense. |
URLs like https://www.mangapark.net/manga/aria are redirected now to the v2 subdomain: https://v2.mangapark.net/manga/aria
This patch makes gallery-dl recognize these v2.mangapark URLs.
Looks like there is a "v3 beta" version of the site now, which has become the default. I don't really use the site so I did not investigate further compatibility with v3 beyond seeing that the URL formats are different. For now, the extractor seems to work fine with the v2 version.