1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-06 13:56:34 +02:00

Instagram ripper no long throws an error when it can't find the qhash on single posts

This commit is contained in:
cyian-1756
2019-06-22 03:56:26 -04:00
parent 1346f87a7f
commit c141ff9da7

View File

@@ -159,7 +159,8 @@ public class InstagramRipper extends AbstractJSONRipper {
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);