Skip to content

Fix legacy HLS paths when refreshing media playlists - #22

Merged
davidvanleeuwen merged 2 commits into
mainfrom
fix/legacy-hls-refresh
Oct 22, 2026
Merged

davidvanleeuwen merged 2 commits into
mainfrom
fix/legacy-hls-refresh

Conversation

@davidvanleeuwen

@davidvanleeuwen davidvanleeuwen commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Refreshing a playlist after audio or subtitle changes could treat an imported database identifier as an object-storage path. That produced HLS references to nonexistent objects even though the media files were still present.

Resolve legacy rendition and subtitle identifiers to version-scoped media paths. For legacy media, retain existing separate audio tracks and omit missing ones only when every video variant contains muxed audio. Otherwise leave the current playlist intact. Invalidate the refreshed master playlist. Modern custom rendition paths remain unchanged.

Validation: Core test suite, six focused HLS regression tests (including replacement versions and storage failures), strict Credo, and the existing security checks.

@davidvanleeuwen
davidvanleeuwen merged commit fd9d842 into main Oct 22, 2026
3 checks passed
@davidvanleeuwen
davidvanleeuwen deleted the fix/legacy-hls-refresh branch October 22, 2026 08:24
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