Skip to content

feat: Add dual-server controls and richer structured metadata to view templates#53

Merged
justinhartman merged 1 commit intomainfrom
develop
Oct 15, 2025
Merged

feat: Add dual-server controls and richer structured metadata to view templates#53
justinhartman merged 1 commit intomainfrom
develop

Conversation

@justinhartman
Copy link
Owner

  • views/view.ejs:1 introduces hasMultiServer, adds season/episode badge for series headers, attaches id="player" to both iframe variants, and surfaces a server-toggle button next to Home/Watchlist when a second embed is available.
  • views/partials/series-buttons.ejs:28 swaps the middle button to a toggle that flips between server URLs when server2Src is present, falling back to Watchlist otherwise.
  • views/partials/footer.ejs:2 wires a lightweight script that listens for toggle clicks and swaps the player iframe src while updating the button label and state.
  • views/partials/meta/og-view.ejs:13 now emits a video:series meta tag to better describe episodic content.
  • views/partials/ld/view.ejs:1 restructures JSON-LD generation to safely hydrate Movie, TVSeries, or TVEpisode schemas with normalised person lists, canonical URLs, and aggregate ratings only when data is present.

… templates

- `views/view.ejs:1` introduces hasMultiServer, adds season/episode
badge for series headers, attaches id="player" to both iframe variants,
and surfaces a server-toggle button next to Home/Watchlist when a
second embed is available.
- `views/partials/series-buttons.ejs:28` swaps the middle button to a
toggle that flips between server URLs when server2Src is present,
falling back to Watchlist otherwise.
- `views/partials/footer.ejs:2` wires a lightweight script that listens
for toggle clicks and swaps the player iframe src while updating the
button label and state.
- `views/partials/meta/og-view.ejs:13` now emits a video:series meta
tag to better describe episodic content.
- `views/partials/ld/view.ejs:1` restructures JSON-LD generation to
safely hydrate Movie, TVSeries, or TVEpisode schemas with normalised
person lists, canonical URLs, and aggregate ratings only when data
is present.
@vercel
Copy link

vercel bot commented Oct 15, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
imdb-app Ready Ready Preview Comment Oct 15, 2025 6:20pm

@justinhartman justinhartman merged commit d98edbe into main Oct 15, 2025
6 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.

1 participant