Fixed regex

This commit is contained in:
cyian-1756 2018-05-08 07:28:18 -04:00
parent 2d1e648bd1
commit 857b951956

View File

@ -430,7 +430,7 @@ public class InstagramRipper extends AbstractHTMLRipper {
return null; return null;
} }
if (!rippingTag) { if (!rippingTag) {
Pattern jsP = Pattern.compile("o},queryId:.([a-zA-Z0-9]+)."); Pattern jsP = Pattern.compile("\\?n.pagination:n},queryId:.([a-zA-Z0-9]+).");
Matcher m = jsP.matcher(sb.toString()); Matcher m = jsP.matcher(sb.toString());
if (m.find()) { if (m.find()) {
return m.group(1); return m.group(1);
@ -442,7 +442,7 @@ public class InstagramRipper extends AbstractHTMLRipper {
return m.group(1); return m.group(1);
} }
} }
logger.info("Could not find query_hash on " + jsFileURL); logger.error("Could not find query_hash on " + jsFileURL);
return null; return null;
} }