Merge pull request #654 from cyian-1756/theyiffgalleryRipperFix
Fixed TheyiffgalleryRipper
This commit is contained in:
commit
b965074c49
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user