Subject: | fix Next processing on US site (<span>Next) |
fixes issue where amazonwish et al. stops after page 1
before:
amazonwish 6JX9XSIN6VL5: $849.42
after:
amazonwish 6JX9XSIN6VL5: $43563.66
Subject: | fix-next-paging.txt |
diff --git a/lib/WWW/Amazon/Wishlist.pm b/lib/WWW/Amazon/Wishlist.pm
index e8e45a0..ecbbf5d 100755
--- a/lib/WWW/Amazon/Wishlist.pm
+++ b/lib/WWW/Amazon/Wishlist.pm
@@ -211,7 +211,7 @@ sub get_list
} # if
push @items, $item;
} # foreach ITEM
- my ($next) = ($content =~ m!&(?:amp;)?page=(\d+)">Next!s);
+ my ($next) = ($content =~ m!&(?:amp;)?page=(\d+)">(?:<[^/>]+>)Next!s);
# for debug purposes
last INFINITE if $test;
# UK doesn't seem to split up over pages