Skip to content

Commit

Permalink
Further work on issue pellcorp#66
Browse files Browse the repository at this point in the history
  • Loading branch information
pellcorp committed Sep 6, 2014
1 parent 4873065 commit 729d599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/site/amazon.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function queryListing($page_no, $items_per_page, $offset, $s_item_type, $search_
$amazonasin = trim($regs[1]);
} else if (preg_match_all("!<div id=\"result_([0-9]+)\"!", $pageBuffer, $regs)) {
if (count($regs[0]) == 1) {
if (preg_match("!<a href=\".*?/dp/([0-9]+)/.*?keywords=.*?!", $pageBuffer, $regs)) {
if (preg_match("!<a href=\".*?/dp/([^/]+)/.*?keywords=.*?!", $pageBuffer, $regs)) {
$amazonasin = trim($regs[1]);
}
}
Expand Down

0 comments on commit 729d599

Please sign in to comment.