Skip to content

Commit

Permalink
Merge pull request #1346 from cyian-1756/instagram_qhash_post_fix
Browse files Browse the repository at this point in the history
Instagram ripper no long throws an error when it can't find the qhash…
  • Loading branch information
cyian-1756 authored Jun 22, 2019
2 parents 1346f87 + c141ff9 commit 4c7c4e6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ public JSONObject getFirstPage() throws IOException {
Document p = resp.parse();
// Get the query hash so we can download the next page
qHash = getQHash(p);
if (qHash == null) {
// The qHash is not needed if ripping a single post
if (qHash == null && !url.toExternalForm().contains("/p/")) {
throw new IOException("Unable to extract qhash from page");
}
return getJSONFromPage(p);
Expand Down

0 comments on commit 4c7c4e6

Please sign in to comment.