Skip to content

Commit 3e4eaf1

Browse files
committed
GID names
1 parent b97b13b commit 3e4eaf1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/com/rarchives/ripme/ripper/rippers/NudeGalsRipper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ public String getGID(URL url) throws MalformedURLException {
4545
p = ALBUM_PATTERN;
4646
m = p.matcher(url.toExternalForm());
4747
if (m.matches()) {
48-
return m.group(1);
48+
return "album_" + m.group(1);
4949
}
5050

5151
p = VIDEO_PATTERN;
5252
m = p.matcher(url.toExternalForm());
5353
if (m.matches()) {
54-
return m.group(1);
54+
return "video_" + m.group(1);
5555
}
5656

5757
throw new MalformedURLException(

src/test/java/com/rarchives/ripme/tst/ripper/rippers/NudeGalsRipperTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ public void testVideoRip() throws IOException, URISyntaxException {
2727
@Test
2828
public void testGetAlbumGID() throws IOException, URISyntaxException {
2929
NudeGalsRipper ripper = new NudeGalsRipper(new URI(ALBUM_TEST_URL).toURL());
30-
Assertions.assertEquals("5541", ripper.getGID( new URI(ALBUM_TEST_URL).toURL()));
30+
Assertions.assertEquals("album_5541", ripper.getGID( new URI(ALBUM_TEST_URL).toURL()));
3131
}
3232

3333
@Test
3434
public void testGetVideoGID() throws IOException, URISyntaxException {
3535
NudeGalsRipper ripper = new NudeGalsRipper(new URI(VIDEO_TEST_URL).toURL());
36-
Assertions.assertEquals("5541", ripper.getGID(new URI(VIDEO_TEST_URL).toURL()));
36+
Assertions.assertEquals("video_1277", ripper.getGID(new URI(VIDEO_TEST_URL).toURL()));
3737
}
3838
}

0 commit comments

Comments
 (0)