Repository navigation
Restore the red live indicator in the navbar - #1196
Merged
CGBassPlayer merged 1 commit intoNov 25, 2026
Merged
CGBassPlayer merged 1 commit into
CGBassPlayer merged 1 commit into
Conversation
…rop the dead PeerTube live scripts
CGBassPlayer
merged commit Nov 25, 2026
a28a965
into
JupiterBroadcasting:develop
1 of 2 checks passed
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Shoutout @ChanceM for the original js snippet!
The navbar live highlight relied on the jupiter.tube PeerTube API, which is gone. It now checks the HLS playlist (
params.live.video_url) directly.live-indicator.js, bundled intoglobal.jsso it runs on every page.header.htmlpasses the playlist URL viadata-live-urlon#mainnavigation.is-livewhen the playlist contains#EXTM3Uand no#EXT-X-ENDLIST; the existing sass turns#livebuttonand the burger dot red.jb-live.jsandlive/jb-tube.html; updates the e2e SAFE path regex.#EXT-X-ENDLISTdoes not.Tested: live and navigation e2e on chromium against the dev server (stubbed playlist), plus confirmed working against the real live stream by a tester.
/live.jsonand/live.mdare unchanged: a static build can't know whether the show is live. This is something I would like to figure out how to solve in the future.Screenshots
Desktop Live
Mobile Live
Offline