You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Timestamp sharing seems to be broken with Link option #2302
Suggested fix: Apply the URL timestamp consistently across playback entry points, including the YouTube preview and cases where the episode is already loaded.
Activity
[-]Timestamp sharing seems to be broken[/-][+]Timestamp sharing seems to be broken with Link option[/+]JoeRoddy commentedon Oct 26, 2026
[Codex TUI - gpt-6.1-sol - xhigh]
I traced the timestamp-sharing behavior through the current codebase and found what looks like the root cause.
The URL timestamp is parsed correctly, but the YouTube player's click handler never uses it.
[+layout.server.ts](https://github.com/syntaxfm/website/blob/main/src/routes/%28site%29/show/%5Bshow_number%5D/%5Bslug%5D/%2Blayout.server.ts#L55-L58)correctly reads the?t=parameter.[YoutubeEmbed.svelte](https://github.com/syntaxfm/website/blob/main/src/lib/videos/YoutubeEmbed.svelte#L39-L42)callsyoutube_player.play_in_slot(show, slot_el)without passing the requested timestamp.[youtube_player.ts](https://github.com/syntaxfm/website/blob/main/src/state/youtube_player.ts#L405-L416)consequently starts at the previously saved video position, or 0:00 for a new listener.There's a second related issue in
[+layout.svelte](https://github.com/syntaxfm/website/blob/main/src/routes/%28site%29/show/%5Bshow_number%5D/%5Bslug%5D/%2Blayout.svelte#L34-L44): the Play Episode button only applies the URL timestamp when starting a different episode or when the player is in its initial state. If that episode is already loaded, the button resumes playback instead of seeking to the shared timestamp.Suggested fix: Apply the URL timestamp consistently across playback entry points, including the YouTube preview and cases where the episode is already loaded.
The existing
[player.play_timestamp(show, seconds)](https://github.com/syntaxfm/website/blob/main/src/state/player.ts#L253-L272)method already supports timestamp-based playback and accounts for potential differences between audio and video timelines. Reusing it would be preferable to duplicating the logic.I'd also recommend adding regression tests for fresh visitors and returning listeners opening timestamped links.
One additional observation:
[ShareActions.svelte](https://github.com/syntaxfm/website/blob/main/src/lib/share/ShareActions.svelte#L46-L51)generates timestamps using$player.audio.currentTime, even when the user is watching video. That could produce incorrect shared timestamps independently of the playback bug.This is based on source-code inspection, not a confirmed browser reproduction.