mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-16 02:44:10 +02:00
Regex change to also match pagination
This commit is contained in:
@@ -35,10 +35,11 @@ public class MeituriRipper extends AbstractHTMLRipper {
|
|||||||
@Override
|
@Override
|
||||||
public String getGID(URL url) throws MalformedURLException {
|
public String getGID(URL url) throws MalformedURLException {
|
||||||
// without escape
|
// without escape
|
||||||
// ^https?://[w.]*meituri\.com/a/([0-9]+)/$
|
// ^https?://[w.]*meituri\.com/a/([0-9]+)/([0-9\.html]+)*$
|
||||||
// https://www.meituri.com/a/14449/
|
// https://www.meituri.com/a/14449/
|
||||||
|
// also matches https://www.meituri.com/a/14449/3.html etc.
|
||||||
// group 1 is 14449
|
// group 1 is 14449
|
||||||
Pattern p = Pattern.compile("^https?://[w.]*meituri\\.com/a/([0-9]+)/$");
|
Pattern p = Pattern.compile("^https?://[w.]*meituri\\.com/a/([0-9]+)/([0-9\\.html]+)*$");
|
||||||
Matcher m = p.matcher(url.toExternalForm());
|
Matcher m = p.matcher(url.toExternalForm());
|
||||||
if (m.matches()) {
|
if (m.matches()) {
|
||||||
albumID = m.group(1);
|
albumID = m.group(1);
|
||||||
|
Reference in New Issue
Block a user