Merge pull request #654 from cyian-1756/theyiffgalleryRipperFix

Fixed TheyiffgalleryRipper
This commit is contained in:
Kevin Jiang 2018-06-02 15:45:23 -04:00 committed by GitHub
commit b965074c49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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