AmazonPriceTracker with no price for amazon.ccTLD domains
Describe the bug
AmazonPriceTracker bridge fetches the price only for .com (US), not for country-based domains: in that case both prices and shipment fields are blank.
To Reproduce Steps to reproduce the behavior:
- Enable the bridge by adding
AmazonPriceTrackertowhitelist.txt - Fill 'ASIN' with
B09JYXR1PR - Fill 'Country' with any country except United States (f.e. Netherlands, Spain, Germany)
- Click on 'Generate feed'
- You should get a URL like
/?action=display&bridge=AmazonPriceTracker&asin=B09JYXR1PR&tld=nl&format=Html - 'Price' and 'Shipping' fields are blank
Expected behavior
Price is shown like for amazon.com links. For example, /?action=display&bridge=AmazonPriceTracker&asin=B09JYXR1PR&tld=com&format=Html returns a price.
Desktop:
- OS: macOS BigSur 11.6
- Browser Firefox
- Version 101.0.1
In some countries the item is not available and that's why the price is not shown, although it'd be better to display something like "Not available" or "Out of stock".
Other coutries (mostly european) use comma as decimal separator, so the regex should be changed to /(\d+[\.,]\d{0,2})/ to include it.
@captn3m0 @sal0max