From 0ce3fe1b0ad3d67db6f37c8a2025646287d98690 Mon Sep 17 00:00:00 2001 From: krzysiej Date: Thu, 26 May 2022 09:58:19 +0200 Subject: [PATCH] Fixed parsing search results page and picking correct cover image. --- src/DataParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DataParser.php b/src/DataParser.php index d5dfba3..1a62dd8 100644 --- a/src/DataParser.php +++ b/src/DataParser.php @@ -49,7 +49,7 @@ class DataParser $bookInfo->title = trim($book->first('.authorAllBooks__singleTextTitle')->text()); $bookInfo->author = trim($book->first('.authorAllBooks__singleTextAuthor')->text()); $bookInfo->url = $book->first('button[data-book-url]')->getAttribute('data-book-url'); - $bookInfo->cover_url = $book->first('.img-fluid')->getAttribute('src'); + $bookInfo->cover_url = $book->first('.img-fluid')->getAttribute('data-src'); $booksInfo[] = $bookInfo; } return $booksInfo;