1.0.31 - Fixing imgur ripper for large albums

Closes #28
This commit is contained in:
4pr0n 2014-04-29 06:17:49 -07:00
parent 6a45cd59e9
commit e5fffbc2c9
4 changed files with 5 additions and 5 deletions

View File

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

View File

@ -129,6 +129,7 @@ public class ImgurRipper extends AlbumRipper {
logger.info(" Retrieving " + url.toExternalForm());
Document doc = Jsoup.connect(url.toExternalForm())
.userAgent(USER_AGENT)
.maxBodySize(0)
.get();
// Try to use embedded JSON to retrieve images

View File

@ -150,7 +150,7 @@ public class MainWindow implements Runnable, RipStatusHandler {
UpdateUtils.updateProgram(configUpdateLabel);
}
};
SwingUtilities.invokeLater(r);
new Thread(r).start();
}
public void run() {
@ -695,8 +695,7 @@ public class MainWindow implements Runnable, RipStatusHandler {
class RipButtonHandler implements ActionListener {
public void actionPerformed(ActionEvent event) {
Thread t = ripAlbum(ripTextfield.getText());
SwingUtilities.invokeLater(t);
ripAlbum(ripTextfield.getText());
}
}

View File

@ -19,7 +19,7 @@ import org.jsoup.nodes.Document;
public class UpdateUtils {
private static final Logger logger = Logger.getLogger(UpdateUtils.class);
private static final String DEFAULT_VERSION = "1.0.30";
private static final String DEFAULT_VERSION = "1.0.31";
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";