Skip to content

Improve DDG fallback for Alpina book metadata - #1

Open
gman-dev-nov wants to merge 2 commits into
developfrom
fix/alpina-non-fiction
Open

Improve DDG fallback for Alpina book metadata#1
gman-dev-nov wants to merge 2 commits into
developfrom
fix/alpina-non-fiction

Conversation

@gman-dev-nov

Copy link
Copy Markdown
Owner

Summary

  • teach the DuckDuckGo ISBN fallback to extract authors from result snippets when titles do not include them
  • clean noisy marketplace-style titles for Alpina/ANF cases and prefer cleaner candidates when DDG returns multiple variants
  • add focused provider tests for the specific ISBN 9785916717099 plus the new title-cleaning rules

Testing

  • venv/bin/python -m pytest tests/test_home_library_providers.py -q
  • venv/bin/python -m py_compile home_library/providers/ddg.py tests/test_home_library_providers.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant