leedo / noembed

oEmbed gateway service with additional non-oEmbed sources
http://www.noembed.com
484 stars 90 forks source link

Add HTTPS and short URLs support to Amazon #84

Closed shuuji3 closed 1 year ago

shuuji3 commented 7 years ago

Amazon's default access protocol is HTTPS now. All HTTP access redirected to HTTPS.

Add support two short urls, a.co and amzn.to. You can get the first one from the share button of a product page, and the latter one is generated by bit.ly.

Modify two regexes from www\.amazon\.com/ to (?:www\.)?amazon\.com/ and from amzn\.com/([^/]+) to amzn\.com/(?:[gd]p/)?([^/]+) to support other url variations.