parent
6c90522693
commit
1c90e98bf2
2
pom.xml
2
pom.xml
@ -4,7 +4,7 @@
|
||||
<groupId>com.rarchives.ripme</groupId>
|
||||
<artifactId>ripme</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>1.0.55</version>
|
||||
<version>1.0.56</version>
|
||||
<name>ripme</name>
|
||||
<url>http://rip.rarchives.com</url>
|
||||
<properties>
|
||||
|
@ -25,7 +25,7 @@ public abstract class AbstractRipper
|
||||
protected static final Logger logger = Logger.getLogger(AbstractRipper.class);
|
||||
|
||||
public static final String USER_AGENT =
|
||||
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:27.0) Gecko/20100101 Firefox/27.0";
|
||||
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:29.0) Gecko/20100101 Firefox/29.0";
|
||||
|
||||
protected URL url;
|
||||
protected File workingDir;
|
||||
|
@ -83,13 +83,14 @@ public class DownloadFileThread extends Thread {
|
||||
tries += 1;
|
||||
Response response;
|
||||
response = Jsoup.connect(url.toExternalForm())
|
||||
.ignoreContentType(true)
|
||||
.userAgent(AbstractRipper.USER_AGENT)
|
||||
.timeout(TIMEOUT)
|
||||
.maxBodySize(MAX_BODY_SIZE)
|
||||
.cookies(cookies)
|
||||
.referrer(referrer)
|
||||
.execute();
|
||||
.ignoreContentType(true)
|
||||
.userAgent(AbstractRipper.USER_AGENT)
|
||||
.header("accept", "*/*")
|
||||
.timeout(TIMEOUT)
|
||||
.maxBodySize(MAX_BODY_SIZE)
|
||||
.cookies(cookies)
|
||||
.referrer(referrer)
|
||||
.execute();
|
||||
if (response.statusCode() != 200) {
|
||||
logger.error("[!] Non-OK status code " + response.statusCode() + " while downloading from " + url);
|
||||
observer.downloadErrored(url, "Non-OK status code " + response.statusCode() + " while downloading " + url.toExternalForm());
|
||||
|
@ -196,7 +196,7 @@ public class RedditRipper extends AlbumRipper {
|
||||
if (Utils.getConfigBoolean("download.save_order", true)) {
|
||||
prefix += String.format("%03d-", i + 1);
|
||||
}
|
||||
addURLToDownload(urls.get(i), prefix);
|
||||
addURLToDownload(urls.get(i), prefix, "", theUrl, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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.55";
|
||||
private static final String DEFAULT_VERSION = "1.0.56";
|
||||
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";
|
||||
|
Loading…
Reference in New Issue
Block a user