mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-01-18 21:17:59 +01:00
1.2.13 - Luke-warm fix for imgur albums/images without descriptions
Closes #324
This commit is contained in:
parent
a1cb242a53
commit
522b813587
2
pom.xml
2
pom.xml
@ -4,7 +4,7 @@
|
||||
<groupId>com.rarchives.ripme</groupId>
|
||||
<artifactId>ripme</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>1.2.12</version>
|
||||
<version>1.2.13</version>
|
||||
<name>ripme</name>
|
||||
<url>http://rip.rarchives.com</url>
|
||||
<properties>
|
||||
|
@ -225,9 +225,16 @@ public class ImgurRipper extends AlbumRipper {
|
||||
"http://i.imgur.com/"
|
||||
+ image.get("hash")
|
||||
+ ext);
|
||||
String title = null, description = null;
|
||||
if (image.has("title") && !image.isNull("title")) {
|
||||
title = image.getString("title");
|
||||
}
|
||||
if (image.has("description") && !image.isNull("description")) {
|
||||
description = image.getString("description");
|
||||
}
|
||||
ImgurImage imgurImage = new ImgurImage(imageURL,
|
||||
image.getString("title"),
|
||||
image.getString("description"));
|
||||
title,
|
||||
description);
|
||||
imgurAlbum.addImage(imgurImage);
|
||||
}
|
||||
return imgurAlbum;
|
||||
|
@ -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.2.12";
|
||||
private static final String DEFAULT_VERSION = "1.2.13";
|
||||
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…
x
Reference in New Issue
Block a user