Merge pull request #913 from cyian-1756/8museFullSized
8muses ripper now gets full sized images
This commit is contained in:
commit
f033bf512d
@ -123,7 +123,7 @@ public class EightmusesRipper extends AbstractHTMLRipper {
|
||||
JSONObject json = new JSONObject(rawJson);
|
||||
try {
|
||||
for (int i = 0; i != json.getJSONArray("pictures").length(); i++) {
|
||||
image = "https://www.8muses.com/image/fm/" + json.getJSONArray("pictures").getJSONObject(i).getString("publicUri");
|
||||
image = "https://www.8muses.com/image/fl/" + json.getJSONArray("pictures").getJSONObject(i).getString("publicUri");
|
||||
URL imageUrl = new URL(image);
|
||||
if (Utils.getConfigBoolean("8muses.use_short_names", false)) {
|
||||
addURLToDownload(imageUrl, getPrefixShort(x), getSubdir(page.select("title").text()), this.url.toExternalForm(), cookies, "", null, true);
|
||||
@ -155,7 +155,7 @@ public class EightmusesRipper extends AbstractHTMLRipper {
|
||||
LOGGER.info("Getting full sized image from " + imageUrl);
|
||||
Document doc = new Http(imageUrl).get(); // Retrieve the webpage of the image URL
|
||||
String imageName = doc.select("div.photo > a > img").attr("src");
|
||||
return "https://www.8muses.com/image/fm/" + imageName;
|
||||
return "https://www.8muses.com/image/fl/" + imageName;
|
||||
}
|
||||
|
||||
private String getTitle(String albumTitle) {
|
||||
|
Loading…
Reference in New Issue
Block a user