1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-29 16:50:10 +02:00
This commit is contained in:
MetaPrime
2025-04-20 01:20:14 -07:00
parent 5a3aea7850
commit 30f905f029

View File

@@ -41,13 +41,13 @@ public class MrCongRipper extends AbstractHTMLRipper {
public String getGID(URL url) throws MalformedURLException {
System.out.println(url.toExternalForm());
Pattern p = Pattern.compile(
"^https?://misskon\\.com/(\\S*)[0-9]+[-0-9a-zA-Z](-[0-9]+-(?:photos?|ahn)?(-[0-9]+-videos?)?(|/|/[0-9]+)$");
Pattern p2 = Pattern.compile("^https?://misskon\\.com/tag/(\\S*)/$"); // Added 6-10-21
"^https?://misskon\\.com/(\\S*)[0-9]+[-0-9a-zA-Z](-[0-9]+-(?:photos?|ahn))?(-[0-9]+-videos?)?(|/|/[0-9]+)$");
Pattern p2 = Pattern.compile("^https?://misskon\\.com/tag/(\\S*)/$");
Matcher m = p.matcher(url.toExternalForm());
Matcher m2 = p2.matcher(url.toExternalForm()); // 6-10-21
Matcher m2 = p2.matcher(url.toExternalForm());
if (m.matches()) {
return m.group(1);
} else if (m2.matches()) { // Added 6-10-21
} else if (m2.matches()) {
tagPage = true;
System.out.println("tagPage = TRUE");
return m2.group(1);
@@ -59,8 +59,8 @@ public class MrCongRipper extends AbstractHTMLRipper {
}
@Override
public Document getFirstPage() throws IOException { // returns the root gallery page regardless of actual page
// number
public Document getFirstPage() throws IOException {
// returns the root gallery page regardless of actual page number
// "url" is an instance field of the superclass
String rootUrlStr;
URL rootUrl;