Fixed TheyiffgalleryRipper

This commit is contained in:
cyian-1756 2018-06-01 18:41:19 -04:00
parent 2ecffc3497
commit 5f90a1792e

View File

@ -59,8 +59,8 @@ public class TheyiffgalleryRipper extends AbstractHTMLRipper {
@Override @Override
public List<String> getURLsFromPage(Document doc) { public List<String> getURLsFromPage(Document doc) {
List<String> result = new ArrayList<>(); List<String> result = new ArrayList<>();
for (Element el : doc.select("ul.thumbnails > li.gdthumb")) { for (Element el : doc.select("img.thumbnail")) {
String imageSource = el.select("a > img").attr("src"); String imageSource = el.attr("src");
imageSource = imageSource.replaceAll("_data/i", ""); imageSource = imageSource.replaceAll("_data/i", "");
imageSource = imageSource.replaceAll("-\\w\\w_\\w\\d+x\\d+", ""); imageSource = imageSource.replaceAll("-\\w\\w_\\w\\d+x\\d+", "");
result.add("https://theyiffgallery.com" + imageSource); result.add("https://theyiffgallery.com" + imageSource);