From 669a78434cf99d3f2c273c3ee8b165d0628262be Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Tue, 14 Nov 2017 13:39:38 -0500 Subject: [PATCH] Added regex for xchan --- .../java/com/rarchives/ripme/ripper/rippers/ChanRipper.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/ChanRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/ChanRipper.java index 297f135a..ace305c1 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/ChanRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/ChanRipper.java @@ -117,6 +117,12 @@ public class ChanRipper extends AbstractHTMLRipper { if (m.matches()) { return m.group(1); } + // xchan + p = Pattern.compile("^.*\\.[a-z]{1,3}/board/[a-zA-Z0-9]+/thread/([0-9]+)/?.*$"); + m = p.matcher(u); + if (m.matches()) { + return m.group(1); + } } throw new MalformedURLException(