mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-23 22:14:06 +02:00
Fix indentation
This commit is contained in:
@@ -24,18 +24,18 @@ public class ErotivRipper extends AbstractHTMLRipper {
|
|||||||
|
|
||||||
boolean rippingProfile;
|
boolean rippingProfile;
|
||||||
|
|
||||||
public ErotivRipper (URL url) throws IOException {
|
public ErotivRipper(URL url) throws IOException {
|
||||||
super(url);
|
super(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getDomain() {
|
public String getDomain() {
|
||||||
return "erotiv.io";
|
return "erotiv.io";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getHost() {
|
public String getHost() {
|
||||||
return "erotiv";
|
return "erotiv";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -51,9 +51,7 @@ public class ErotivRipper extends AbstractHTMLRipper {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Document getFirstPage() throws IOException {
|
public Document getFirstPage() throws IOException {
|
||||||
Response resp = Http.url(this.url)
|
Response resp = Http.url(this.url).ignoreContentType().response();
|
||||||
.ignoreContentType()
|
|
||||||
.response();
|
|
||||||
|
|
||||||
return resp.parse();
|
return resp.parse();
|
||||||
}
|
}
|
||||||
@@ -67,15 +65,15 @@ public class ErotivRipper extends AbstractHTMLRipper {
|
|||||||
public List<String> getURLsFromPage(Document doc) {
|
public List<String> getURLsFromPage(Document doc) {
|
||||||
List<String> results = new ArrayList<>();
|
List<String> results = new ArrayList<>();
|
||||||
for (Element el : doc.select("video[id=\"video-id\"] > source")) {
|
for (Element el : doc.select("video[id=\"video-id\"] > source")) {
|
||||||
if (el.hasAttr("src")) {
|
if (el.hasAttr("src")) {
|
||||||
Pattern p = Pattern.compile("/uploads/[0-9]*\\.mp4");
|
Pattern p = Pattern.compile("/uploads/[0-9]*\\.mp4");
|
||||||
Matcher m = p.matcher(el.attr("src"));
|
Matcher m = p.matcher(el.attr("src"));
|
||||||
if (m.matches()) {
|
if (m.matches()) {
|
||||||
results.add("https://erotiv.io" + el.attr("src"));
|
results.add("https://erotiv.io" + el.attr("src"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return results;
|
return results;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user