rss-bridge icon indicating copy to clipboard operation
rss-bridge copied to clipboard

AmazonPriceTracker with no price for amazon.ccTLD domains

Open adriaaah opened this issue 3 years ago • 2 comments

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:

  1. Enable the bridge by adding AmazonPriceTracker to whitelist.txt
  2. Fill 'ASIN' with B09JYXR1PR
  3. Fill 'Country' with any country except United States (f.e. Netherlands, Spain, Germany)
  4. Click on 'Generate feed'
  5. You should get a URL like /?action=display&bridge=AmazonPriceTracker&asin=B09JYXR1PR&tld=nl&format=Html
  6. '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

adriaaah avatar Jun 25 '22 17:06 adriaaah

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.

llamasblade avatar Jul 13 '22 08:07 llamasblade

@captn3m0 @sal0max

Bockiii avatar Jul 13 '22 12:07 Bockiii