Merge pull request #960 from cyian-1756/eromeTestFix

Erome ripper now grabs both HD and SD video, replaced 404ing url in unit test
This commit is contained in:
cyian-1756 2018-09-24 19:00:48 -04:00 committed by GitHub
commit 5bcf3b4a18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -129,6 +129,9 @@ public class EromeRipper extends AbstractHTMLRipper {
for (Element el : doc.select("source[label=HD]")) {
results.add("https:" + el.attr("src"));
}
for (Element el : doc.select("source[label=SD]")) {
results.add("https:" + el.attr("src"));
}
return results;
}

View File

@ -33,7 +33,7 @@ public class EromeRipperTest extends RippersTest {
}
public void testRip() throws IOException {
URL url = new URL("https://www.erome.com/a/4FqeUxil");
URL url = new URL("https://www.erome.com/a/vlefBdsg");
EromeRipper ripper = new EromeRipper(url);
testRipper(ripper);
}