1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-17 11:20:56 +02:00

Fix Zizki (Page layout change)

This commit is contained in:
Stilgar
2021-05-21 01:03:44 +02:00
parent 3c4e303358
commit 735f13cc9f

View File

@@ -87,14 +87,12 @@ public class ZizkiRipper extends AbstractHTMLRipper {
if (thumb.hasAttr("typeof")) { if (thumb.hasAttr("typeof")) {
img_type = thumb.attr("typeof"); img_type = thumb.attr("typeof");
if (img_type.equals("foaf:Image")) { if (img_type.equals("foaf:Image")) {
LOGGER.debug("Found image with " + img_type);
if (thumb.parent() != null && if (thumb.parent() != null &&
thumb.parent().parent() != null && thumb.parent().attr("class") != null &&
thumb.parent().parent().attr("class") != null && thumb.parent().attr("class").contains("colorbox")
thumb.parent().parent().attr("class").equals("aimage-center")
) )
{ {
src = thumb.attr("src"); src = thumb.parent().attr("href");
LOGGER.debug("Found url with " + src); LOGGER.debug("Found url with " + src);
if (!src.contains("zizki.com")) { if (!src.contains("zizki.com")) {
} else { } else {