diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/FooktubeRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/FooktubeRipper.java deleted file mode 100644 index fed1abe02..000000000 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/FooktubeRipper.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.rarchives.ripme.ripper.rippers; - -import java.io.IOException; -import java.net.MalformedURLException; -import java.net.URL; -import java.util.ArrayList; -import java.util.List; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import com.rarchives.ripme.ripper.AbstractSingleFileRipper; -import org.jsoup.nodes.Document; - -public class FooktubeRipper extends AbstractSingleFileRipper { - - public FooktubeRipper(URL url) throws IOException { - super(url); - } - - @Override - public String getHost() { - return "mulemax"; - } - - @Override - public String getDomain() { - return "mulemax.com"; - } - - - @Override - public boolean canRip(URL url) { - Pattern p = Pattern.compile("^https?://.*fooktube\\.com/video/(.*)/.*$"); - Matcher m = p.matcher(url.toExternalForm()); - return m.matches(); - } - - @Override - public URL sanitizeURL(URL url) throws MalformedURLException { - return url; - } - - @Override - public String getGID(URL url) throws MalformedURLException { - Pattern p = Pattern.compile("^https?://.*fooktube\\.com/video/(.*)/(.*)$"); - Matcher m = p.matcher(url.toExternalForm()); - if (m.matches()) { - return m.group(2); - } - - throw new MalformedURLException( - "Expected fooktube format:" - + "fooktube.com/video/####" - + " Got: " + url); - } - - @Override - public List getURLsFromPage(Document doc) { - List result = new ArrayList<>(); - result.add(doc.select(".video-js > source").attr("src")); - return result; - } - - @Override - public void downloadURL(URL url, int index) { - addURLToDownload(url, getPrefix(index), "", "mulemax.com", null); - } -} \ No newline at end of file diff --git a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/FooktubeRipperTest.java b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/FooktubeRipperTest.java deleted file mode 100644 index 3e873ed64..000000000 --- a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/FooktubeRipperTest.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.rarchives.ripme.tst.ripper.rippers; - -import java.io.IOException; -import java.net.URI; -import java.net.URISyntaxException; - -import com.rarchives.ripme.ripper.rippers.FooktubeRipper; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -public class FooktubeRipperTest extends RippersTest { - @Test - @Disabled("test or ripper broken") - public void testFooktubeVideo() throws IOException, URISyntaxException { - FooktubeRipper ripper = new FooktubeRipper(new URI("https://fooktube.com/video/641/in-the-cinema").toURL()); //pick any video from the front page - testRipper(ripper); - } - -}