Merge pull request #276 from cyian-1756/tapas

Fixed Tapas ripper
This commit is contained in:
cyian-1756 2017-11-27 17:27:38 -05:00 committed by GitHub
commit 3f0f5daff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -38,12 +38,12 @@ public class TapasticRipper extends AbstractHTMLRipper {
@Override @Override
public String getDomain() { public String getDomain() {
return "tapastic.com"; return "tapas.io";
} }
@Override @Override
public String getHost() { public String getHost() {
return "tapastic"; return "tapas";
} }
@Override @Override
@ -100,12 +100,12 @@ public class TapasticRipper extends AbstractHTMLRipper {
@Override @Override
public String getGID(URL url) throws MalformedURLException { 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()); Matcher m = p.matcher(url.toExternalForm());
if (m.matches()) { if (m.matches()) {
return "series_ " + m.group(1); return "series_ " + m.group(1);
} }
p = Pattern.compile("^http://tapastic.com/episode/([^/?]+).*$"); p = Pattern.compile("^https?://tapas.io/episode/([^/?]+).*$");
m = p.matcher(url.toExternalForm()); m = p.matcher(url.toExternalForm());
if (m.matches()) { if (m.matches()) {
return "ep_" + m.group(1); return "ep_" + m.group(1);

View File

@ -7,7 +7,7 @@ import com.rarchives.ripme.ripper.rippers.TapasticRipper;
public class TapasticRipperTest extends RippersTest { public class TapasticRipperTest extends RippersTest {
public void testTapasticRip() throws IOException { 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); testRipper(ripper);
} }
} }