Skip to content

opds: Show only borrowable or open access books in trending#11503

Merged
mekarpeles merged 2 commits intointernetarchive:masterfrom
MarcCoquand:only-borrowable-in-trending
Nov 22, 2025
Merged

opds: Show only borrowable or open access books in trending#11503
mekarpeles merged 2 commits intointernetarchive:masterfrom
MarcCoquand:only-borrowable-in-trending

Conversation

@MarcCoquand
Copy link
Copy Markdown
Contributor

@MarcCoquand MarcCoquand commented Nov 21, 2025

This pull request updates the homepage book catalog query to further filter trending books. Now, only books that are borrowable (i.e., have ebook_access available) will be included in the trending list.

Catalog query update:

  • Modified the trending books search query in build_homepage (openlibrary/plugins/openlibrary/api.py) to include only books with ebook_access set to a borrowable value, ensuring that only borrowable books are shown in the trending section.

@mekarpeles
Copy link
Copy Markdown
Member

Can now land because of ArchiveLabs/pyopds2_openlibrary#15 3cecc2c7166f29021e77e363b899d2cfef939226

@mekarpeles mekarpeles merged commit ad566c7 into internetarchive:master Nov 22, 2025
4 checks passed
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.

2 participants