Fixed parsing search results page and picking correct cover image.

This commit is contained in:
krzysiej
2022-05-26 09:58:19 +02:00
parent 7d70ad40cb
commit 0ce3fe1b0a

View File

@@ -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;