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:
commit
5bcf3b4a18
@ -129,6 +129,9 @@ public class EromeRipper extends AbstractHTMLRipper {
|
|||||||
for (Element el : doc.select("source[label=HD]")) {
|
for (Element el : doc.select("source[label=HD]")) {
|
||||||
results.add("https:" + el.attr("src"));
|
results.add("https:" + el.attr("src"));
|
||||||
}
|
}
|
||||||
|
for (Element el : doc.select("source[label=SD]")) {
|
||||||
|
results.add("https:" + el.attr("src"));
|
||||||
|
}
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ public class EromeRipperTest extends RippersTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testRip() throws IOException {
|
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);
|
EromeRipper ripper = new EromeRipper(url);
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user