Skip to content

Commit

Permalink
HD images
Browse files Browse the repository at this point in the history
  • Loading branch information
Yavuz Selim Bilgin committed May 25, 2019
1 parent d5e9753 commit f9e328c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ public function crawl($attributes = [])
$news->category = $this->titleCase(str_replace('DHA-', '', $item->category));
$news->city = (!empty($item->location) ? $this->titleCase($item->location) : '');
$news->images = [];
if (isset($item->photos) && count($item->photos) > 0) {
foreach ($item->photos as $image) {
if (isset($item->photoshd) && count($item->photoshd) > 0) {
foreach ($item->photoshd as $image) {
$news->images[] = (string)$image;
}
}
Expand Down

0 comments on commit f9e328c

Please sign in to comment.