From 5fc50e524bf9b58bf878ace9cb8d0d90a6fc23f4 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Thu, 23 Nov 2017 00:51:37 -0500 Subject: [PATCH 1/3] Fixed ripper for tapas.io --- .../rarchives/ripme/ripper/rippers/TapasticRipper.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/TapasticRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/TapasticRipper.java index b0742bd8..8ef019a2 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/TapasticRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/TapasticRipper.java @@ -38,12 +38,12 @@ public class TapasticRipper extends AbstractHTMLRipper { @Override public String getDomain() { - return "tapastic.com"; + return "tapas.io"; } @Override public String getHost() { - return "tapastic"; + return "tapas"; } @Override @@ -100,12 +100,12 @@ public class TapasticRipper extends AbstractHTMLRipper { @Override public String getGID(URL url) throws MalformedURLException { - Pattern p = Pattern.compile("^http://tapastic.com/series/([^/?]+).*$"); + Pattern p = Pattern.compile("^https?://tapas.io/series/([^/?]+).*$"); Matcher m = p.matcher(url.toExternalForm()); if (m.matches()) { return "series_ " + m.group(1); } - p = Pattern.compile("^http://tapastic.com/episode/([^/?]+).*$"); + p = Pattern.compile("^https?://tapas.io/episode/([^/?]+).*$"); m = p.matcher(url.toExternalForm()); if (m.matches()) { return "ep_" + m.group(1); From 776cf522f4f89c77d57bbe6c062a3015cb17bbd8 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Thu, 23 Nov 2017 00:57:05 -0500 Subject: [PATCH 2/3] Added unit test for tapas ripper --- .../ripme/tst/ripper/rippers/TapasRipperTest.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/test/java/com/rarchives/ripme/tst/ripper/rippers/TapasRipperTest.java diff --git a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/TapasRipperTest.java b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/TapasRipperTest.java new file mode 100644 index 00000000..6e581ea0 --- /dev/null +++ b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/TapasRipperTest.java @@ -0,0 +1,13 @@ +package com.rarchives.ripme.tst.ripper.rippers; + +import java.io.IOException; +import java.net.URL; + +import com.rarchives.ripme.ripper.rippers.TapasticRipper; + +public class TapasRipperTest extends RippersTest { + public void testTapasRipperAlbum() throws IOException { + TapasticRipper ripper = new TapasticRipper(new URL("https://tapas.io/series/tsiwbakd-comic")); + testRipper(ripper); + } +} \ No newline at end of file From 6114604152457e4e42ce1930b588e5b6371f5bb3 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Thu, 23 Nov 2017 01:11:05 -0500 Subject: [PATCH 3/3] Remove reduntent unit test --- .../ripme/tst/ripper/rippers/TapasRipperTest.java | 13 ------------- .../tst/ripper/rippers/TapasticRipperTest.java | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 src/test/java/com/rarchives/ripme/tst/ripper/rippers/TapasRipperTest.java diff --git a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/TapasRipperTest.java b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/TapasRipperTest.java deleted file mode 100644 index 6e581ea0..00000000 --- a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/TapasRipperTest.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.rarchives.ripme.tst.ripper.rippers; - -import java.io.IOException; -import java.net.URL; - -import com.rarchives.ripme.ripper.rippers.TapasticRipper; - -public class TapasRipperTest extends RippersTest { - public void testTapasRipperAlbum() throws IOException { - TapasticRipper ripper = new TapasticRipper(new URL("https://tapas.io/series/tsiwbakd-comic")); - testRipper(ripper); - } -} \ No newline at end of file diff --git a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/TapasticRipperTest.java b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/TapasticRipperTest.java index efef40cd..9617e4b8 100644 --- a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/TapasticRipperTest.java +++ b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/TapasticRipperTest.java @@ -7,7 +7,7 @@ import com.rarchives.ripme.ripper.rippers.TapasticRipper; public class TapasticRipperTest extends RippersTest { public void testTapasticRip() throws IOException { - TapasticRipper ripper = new TapasticRipper(new URL("http://tapastic.com/episode/2139")); + TapasticRipper ripper = new TapasticRipper(new URL("https://tapas.io/series/tsiwbakd-comic")); testRipper(ripper); } }