11package com .rarchives .ripme .ripper .rippers ;
22
3- import com .rarchives .ripme .ripper .AbstractHTMLRipper ;
4- import com .rarchives .ripme .utils .Http ;
5- import org .jsoup .nodes .Document ;
6- import org .jsoup .nodes .Element ;
7-
83import java .io .IOException ;
94import java .net .MalformedURLException ;
105import java .net .URL ;
138import java .util .regex .Matcher ;
149import java .util .regex .Pattern ;
1510
11+ import org .jsoup .nodes .Document ;
12+ import org .jsoup .nodes .Element ;
1613
17- public class HentaiimageRipper extends AbstractHTMLRipper {
18-
14+ import com . rarchives . ripme . ripper . AbstractHTMLRipper ;
15+ import com . rarchives . ripme . utils . Http ;
1916
17+ public class HentaiimageRipper extends AbstractHTMLRipper {
2018 public HentaiimageRipper (URL url ) throws IOException {
2119 super (url );
2220 }
@@ -43,13 +41,13 @@ public boolean canRip(URL url) {
4341
4442 @ Override
4543 public String getGID (URL url ) throws MalformedURLException {
46- Pattern p = Pattern .compile ("https://(?:\\ w\\ w\\ .)?hentai-(image|comic).com/image/([a-zA-Z0-9_-]+)/?" );
44+ Pattern p = Pattern .compile ("https://(?:\\ w\\ w\\ .)?hentai-(image|comic|img-xxx ).com/image/([a-zA-Z0-9_-]+)/?" );
4745 Matcher m = p .matcher (url .toExternalForm ());
4846 if (m .matches ()) {
4947 return m .group (1 );
5048 }
5149 throw new MalformedURLException ("Expected hitomi URL format: " +
52- "https://hentai-image .com/image/ID - got " + url + " instead" );
50+ "https://hentai-img-xxx .com/image/ID - got " + url + " instead" );
5351 }
5452
5553 @ Override
0 commit comments