Skip to content

Commit 8c3cca5

Browse files
metaprimeCopilot
andauthored
Update src/main/java/com/rarchives/ripme/ripper/rippers/MrCongRipper.java
Co-authored-by: Copilot <[email protected]>
1 parent 49055d9 commit 8c3cca5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ public List<String> getURLsFromPage(Document doc) { // gets the urls of the imag
164164
if (!tagPage) {
165165
for (Element el : doc.select("p > img")) {
166166
String imageSource = el.attr("data-src");
167-
result.add(imageSource);
167+
if (imageSource == null || imageSource.isEmpty()) {
168+
imageSource = el.attr("src");
169+
}
168170
}
169171

170172
System.out.println("\n1.)Printing List: " + result + "\n");

0 commit comments

Comments
 (0)