1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-01-18 21:17:59 +01:00

1.0.86 - Fix imagefap albums larger than 1k images

Mentioned in #8
This commit is contained in:
4pr0n 2014-08-15 22:07:59 -07:00
parent f8935af7d6
commit e46e6733fa
3 changed files with 5 additions and 6 deletions

View File

@ -4,7 +4,7 @@
<groupId>com.rarchives.ripme</groupId>
<artifactId>ripme</artifactId>
<packaging>jar</packaging>
<version>1.0.85</version>
<version>1.0.86</version>
<name>ripme</name>
<url>http://rip.rarchives.com</url>
<properties>

View File

@ -83,10 +83,9 @@ public class ImagefapRipper extends AbstractHTMLRipper {
@Override
public Document getNextPage(Document doc) throws IOException {
String nextURL = null;
for (Element a : albumDoc.select("a.link3")) {
for (Element a : doc.select("a.link3")) {
if (a.text().contains("next")) {
nextURL = a.attr("href");
nextURL = "http://imagefap.com/gallery.php" + nextURL;
nextURL = "http://imagefap.com/gallery.php" + a.attr("href");
break;
}
}
@ -100,7 +99,7 @@ public class ImagefapRipper extends AbstractHTMLRipper {
@Override
public List<String> getURLsFromPage(Document doc) {
List<String> imageURLs = new ArrayList<String>();
for (Element thumb : albumDoc.select("#gallery img")) {
for (Element thumb : doc.select("#gallery img")) {
if (!thumb.hasAttr("src") || !thumb.hasAttr("width")) {
continue;
}

View File

@ -21,7 +21,7 @@ import com.rarchives.ripme.utils.Utils;
public class UpdateUtils {
private static final Logger logger = Logger.getLogger(UpdateUtils.class);
private static final String DEFAULT_VERSION = "1.0.85";
private static final String DEFAULT_VERSION = "1.0.86";
private static final String updateJsonURL = "http://rarchives.com/ripme.json";
private static final String updateJarURL = "http://rarchives.com/ripme.jar";
private static final String mainFileName = "ripme.jar";