Fixed ripping from single instagram page

This commit is contained in:
cyian-1756 2018-06-19 16:22:22 -04:00
parent 867af57713
commit 98d4c57f93

View File

@ -249,7 +249,9 @@ public class InstagramRipper extends AbstractJSONRipper {
@Override @Override
public List<String> getURLsFromJSON(JSONObject json) { public List<String> getURLsFromJSON(JSONObject json) {
List<String> imageURLs = new ArrayList<>(); List<String> imageURLs = new ArrayList<>();
nextPageID = getAfter(json); if (!url.toExternalForm().contains("/p/")) {
nextPageID = getAfter(json);
}
// get the rhx_gis value so we can get the next page later on // get the rhx_gis value so we can get the next page later on
if (rhx_gis == null) { if (rhx_gis == null) {