aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile/lib/readerSettings.tsx
diff options
context:
space:
mode:
authorRandall Hand <Yeraze@users.noreply.github.com>2025-12-14 06:15:53 -0500
committerGitHub <noreply@github.com>2025-12-14 11:15:53 +0000
commitb3196354d1272e6440119ba170c9d8369149baa4 (patch)
treea738bd10d164da69aeb471b7e0c551e86a94cea9 /apps/mobile/lib/readerSettings.tsx
parentf5c32d940ea6c2a6da6c225c2de1eba13b49f9e0 (diff)
downloadkarakeep-b3196354d1272e6440119ba170c9d8369149baa4.tar.zst
fix: Fix Amazon product image extraction on amazon.com URLs (#2108)
The metascraper-amazon package extracts the first .a-dynamic-image element, which on amazon.com is often the Prime logo instead of the product image. This works fine on amazon.co.uk where the product image appears first in the DOM. Created a custom metascraper plugin that uses more specific selectors (#landingImage, #imgTagWrapperId, #imageBlock) to target the actual product image. By placing this plugin before metascraperAmazon() in the chain, we fix image extraction while preserving all other Amazon metadata (title, brand, description). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
Diffstat (limited to 'apps/mobile/lib/readerSettings.tsx')
0 files changed, 0 insertions, 0 deletions