Commit e938ac9 1 parent 71e20fe commit e938ac9 Copy full SHA for e938ac9
File tree 2 files changed +3
-8
lines changed
main/java/com/rarchives/ripme/ripper/rippers
test/java/com/rarchives/ripme/tst/ripper/rippers
2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 5
5
import java .net .URI ;
6
6
import java .net .URISyntaxException ;
7
7
import java .net .URL ;
8
- import java .nio .file .Files ;
9
- import java .nio .file .Paths ;
10
8
import java .util .ArrayList ;
11
9
import java .util .List ;
12
10
import java .util .regex .Matcher ;
17
15
18
16
import com .rarchives .ripme .ripper .AbstractHTMLRipper ;
19
17
import com .rarchives .ripme .ripper .DownloadThreadPool ;
20
- import com .rarchives .ripme .ui .RipStatusMessage .STATUS ;
21
18
import com .rarchives .ripme .utils .Http ;
22
19
import com .rarchives .ripme .utils .Utils ;
23
20
import org .jsoup .select .Elements ;
@@ -72,8 +69,6 @@ protected Document getFirstPage() throws IOException {
72
69
@ Override
73
70
public Document getNextPage (Document doc ) throws IOException , URISyntaxException {
74
71
75
- Files .write (Paths .get ("doc-next-page.txt" ), doc .outerHtml ().getBytes ());
76
-
77
72
Elements nextPageLink = doc .head ().select ("link[rel=next]" );
78
73
if (nextPageLink .isEmpty ()) {
79
74
throw new IOException ("Last page reached" );
Original file line number Diff line number Diff line change 12
12
public class VidbleRipperTest extends RippersTest {
13
13
@ Test
14
14
public void testVidbleRip () throws IOException , URISyntaxException {
15
- VidbleRipper ripper = new VidbleRipper (new URI ("http ://www. vidble.com/album/y1oyh3zd " ).toURL ());
15
+ VidbleRipper ripper = new VidbleRipper (new URI ("https ://vidble.com/album/cGEFr8zi " ).toURL ());
16
16
testRipper (ripper );
17
17
}
18
18
19
19
@ Test
20
20
public void testGetGID () throws IOException , URISyntaxException {
21
- URL url = new URI ("http ://www. vidble.com/album/y1oyh3zd " ).toURL ();
21
+ URL url = new URI ("https ://vidble.com/album/cGEFr8zi " ).toURL ();
22
22
VidbleRipper ripper = new VidbleRipper (url );
23
- Assertions .assertEquals ("y1oyh3zd " , ripper .getGID (url ));
23
+ Assertions .assertEquals ("cGEFr8zi " , ripper .getGID (url ));
24
24
}
25
25
}
26
26
You can’t perform that action at this time.
0 commit comments