janeczku / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
12.77k stars 1.35k forks source link

Invalid amazon link #3151

Open webysther opened 3 weeks ago

webysther commented 3 weeks ago

Describe the bug/problem

With this ID on calibre amazon_uk:0141439475 the link render:

image

Send to: https://www.amazon.uk/dp/0141439475 Correct need include .co: https://www.amazon.co.uk/dp/0141439475

OzzieIsaacs commented 3 weeks ago

no rule without exception...

Please install a new package neamed "netifaces-plus" (has nothing to do with this fix) and update to the newest nightly version to enjoy the fix

OzzieIsaacs commented 3 weeks ago

Please leave it open till the next release

webysther commented 2 weeks ago

Oh boy... This also happens with amazon of brazil, amazon_br:8535282513 solve to https://amazon.br/dp/8535282513 but is https://amazon.com.br/dp/8535282513

Maybe creating a dict of amazon around world or just using https://www.amazon.com/dp/ID?

For the amazon list: https://www.searchapi.io/docs/parameters/amazon/domain