Merge pull request #913 from cyian-1756/8museFullSized

8muses ripper now gets full sized images
This commit is contained in:
cyian-1756 2018-09-10 06:17:29 -04:00 committed by GitHub
commit f033bf512d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {