Better naming output for instagram slide shows

This commit is contained in:
cyian-1756 2017-11-22 18:34:08 -05:00
parent 2e5f8a99b9
commit 47822f612e

View File

@ -217,7 +217,7 @@ public class InstagramRipper extends AbstractHTMLRipper {
Document slideShowDoc = Http.url(new URL ("https://www.instagram.com/p/" + data.getString("code"))).get(); Document slideShowDoc = Http.url(new URL ("https://www.instagram.com/p/" + data.getString("code"))).get();
List<String> toAdd = getPostsFromSinglePage(slideShowDoc); List<String> toAdd = getPostsFromSinglePage(slideShowDoc);
for (int slideShowInt=0; slideShowInt<toAdd.size(); slideShowInt++) { for (int slideShowInt=0; slideShowInt<toAdd.size(); slideShowInt++) {
addURLToDownload(new URL(toAdd.get(slideShowInt))); addURLToDownload(new URL(toAdd.get(slideShowInt)), image_date + data.getString("code"));
} }
} catch (MalformedURLException e) { } catch (MalformedURLException e) {
logger.error("Unable to download slide show, URL was malformed"); logger.error("Unable to download slide show, URL was malformed");