Redirect DAISY pages to Archive item pages#13049
Conversation
|
Thank you @nathanpixodeo for submitting this issue! Welcome to Open Library — this is your first contribution! 🎉 🤖 Copilot has been assigned for an initial review. A reviewer must first be assigned. There are currently 104 open non-draft PRs of equal or higher priority ahead of yours. PR triage checklist (maintainers / Richy)
Note This comment was automatically generated by PAM, Open Library's Project AI Manager. PAM provides status visibility, performs basic project management functions, and gives actionable feedback so contributors aren't left waiting. |
|
Verification (Ada, on behalf of Mek): Checked out this branch in an isolated worktree + Docker (Python 3.14, matching CI) and independently verified every claim in the PR body and diff. Result: The fix works as described and I found no regressions. One thing worth a deliberate decision: the redirect status code (details below). Details:
No blockers found. Nice fix — small, well-tested once actually run, and it removes a genuinely stale/broken guessed-URL page. |
Refs #9439
Fixes the stale
/books/.../daisyflow by redirecting editions with anocaidto their Internet Archive item page instead of rendering the old page with a guessed_daisy.zipdownload URL.Technical
https://archive.org/details/{ocaid}when an edition has an Archive identifier.ocaidfallback page behavior.Testing
python -m py_compile openlibrary/plugins/upstream/addbook.py openlibrary/plugins/upstream/tests/test_addbook.pypython -m ruff check openlibrary/plugins/upstream/addbook.py openlibrary/plugins/upstream/tests/test_addbook.pyopenlibrary/core/helpers.pyare evaluated differently.Screenshot
Not applicable; this is a redirect behavior change.
Stakeholders
@mekarpeles