Skip to content

Commit 69a2e11

Browse files
committed
AmazonProvider only looks for books
1 parent e13a438 commit 69a2e11

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/BookFinder/Providers/AmazonProvider.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ public function getResult()
9292
$item = $this->response['Items']['Item'];
9393
}
9494

95+
if ('Book' !== $item['ItemAttributes']['ProductGroup']) {
96+
97+
return false;
98+
}
99+
95100
// Find elements by map
96101
foreach($map as $mapKey => $mapItems) {
97102
$searchItem = $item;

0 commit comments

Comments
 (0)