Skip to content

Let the backend handle movies - #27

Merged
komacke merged 5 commits into
mainfrom
BE-handles-movies
Aug 2, 2026
Merged

Let the backend handle movies#27
komacke merged 5 commits into
mainfrom
BE-handles-movies

Conversation

@komacke

@komacke komacke commented Apr 1, 2026

Copy link
Copy Markdown
Collaborator

NASA took down the server and host that provided the movies HC could play. HC just opened a brower tab. We should remove the dependency of the movie server from HC and let the backend figure it out. This keeps the filenames essentially the same but sends the browser to the backend which can serve up movies, redirect, or whatever.

komacke added 5 commits March 29, 2026 18:20
NASA took down the server and host that provided the movies HC could
play. HC just opened a brower tab. We should remove the dependency of
the movie server from HC and let the backend figure it out. This keeps
the filenames essentially the same but sends the browser to the backend
which can serve up movies, redirect, or whatever.
We observed the NASA page was down for a while. HamClock shouldn't bake
this URL into its code. It should direct its request to the backend.

The movie is a YouTube video so that backend could fall back to the
YouTube URL if the NASA page is down.
Keeping in the spirit of using the configured port, these URLs need to
point to the backend without https. The backend probably supports https
for f/w upgrades but we'll follow the standard of all the other
endpoints
This PR has been sitting here since we started developing on HamClock.
As the PR was originally written it creates a backward compatiblity
problem with backends that don't implement the new endpoint.

This PR falls back to the original method if the backend doesn't support
the endpoint, thereby making it backward compatible.
@komacke
komacke merged commit 60bc5c3 into main Aug 2, 2026
9 checks passed
@komacke
komacke deleted the BE-handles-movies branch August 2, 2026 21:48
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