Update AvasScraper.php
This commit is contained in:
@@ -25,7 +25,7 @@ class AvasScraper
|
|||||||
|
|
||||||
$title = $crawler->filter('h1')->first()->text();
|
$title = $crawler->filter('h1')->first()->text();
|
||||||
|
|
||||||
if($crawler->filter('figure img')->count() == 1)
|
if($crawler->filter('figure img')->count() > 0)
|
||||||
{
|
{
|
||||||
$this->image = $crawler->filter('figure img')->first()->attr('src');
|
$this->image = $crawler->filter('figure img')->first()->attr('src');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user