Skip Menu |

This queue is for tickets about the WWW-Amazon-Wishlist CPAN distribution.

Report information
The Basics
Id: 48946
Status: resolved
Priority: 0/
Queue: WWW-Amazon-Wishlist

People
Owner: MTHURN [...] cpan.org
Requestors: RSOD [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.002
Fixed in: (no value)



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
Thank you for your report and patch. I had already started looking at this, your patch led me indirectly to the solution to a side-effect of some other code that I had already changed...