Skip to content

Conversation

@395ShikharSingh
Copy link
Contributor

Closes #11617

Feature Requested

Add new "Book Talks" carousel to homepage using archive.org API.

Screenshot

Screenshot 2025-12-24 at 22 07 12

Changes

  • Added get_book_talks() - fetches book talks from archive.org API
  • Added get_cached_book_talks() - caches results for 1 day
  • Custom carousel template with "Watch" button

Copy link
Member

@mekarpeles mekarpeles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for working on this!

Since these images are more horizontal (wide) than vertical (tall), we likely want to show fewer (e.g. just 3).

We also will want to show the title and the date (as otherwise it's unclear what the video is).

Furthermore, we'll want to move the css out of inline styles and into the correct files in `static/css

@395ShikharSingh
Copy link
Contributor Author

395ShikharSingh commented Dec 27, 2025

Screen.Recording.mov

@github-actions github-actions bot added the Needs: Response Issues which require feedback from lead label Dec 28, 2025
@mekarpeles
Copy link
Member

This is getting there! Nice work.

It may be a little work, but rather than an external link, what we may want to do is have the watch button open up the archive.org item like we do for the preview as an iframe. This would allow patrons to stay on Open Library. We could also switch the URL slightly to go to /embed instead of /details

e.g. instead of https://archive.org/details/history-disrupted we'd go to https://archive.org/embed/history-disrupted

@395ShikharSingh
Copy link
Contributor Author

Screen.Recording.mov

@395ShikharSingh
Copy link
Contributor Author

395ShikharSingh commented Dec 29, 2025

Archive.org's embed shows a thumbnail with a play button first, then after clicking it loads and shows the actual player with another play button. Added an autoplay=1 parameter to the embed URL to make it start automatically when the modal opens.

@395ShikharSingh 395ShikharSingh marked this pull request as ready for review December 30, 2025 22:23
@mekarpeles
Copy link
Member

Nice work! I'll put this on testing.

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

Labels

Needs: Response Issues which require feedback from lead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add new "Book Talks" carousel to homepage using archive.org API

2 participants