Skip to content

fix: share endpoint returns master.m3u8 for video stream URLs (#45)#48

Merged
ravirajsinh45 merged 1 commit into
mainfrom
fix/share-video-stream-master-m3u8
Apr 13, 2026
Merged

fix: share endpoint returns master.m3u8 for video stream URLs (#45)#48
ravirajsinh45 merged 1 commit into
mainfrom
fix/share-video-stream-master-m3u8

Conversation

@ravirajsinh45

@ravirajsinh45 ravirajsinh45 commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix /share/{token} so video assets receive a presigned URL ending in /master.m3u8 instead of the HLS folder prefix.
  • Mirrors the existing fix already applied in get_share_stream_url (share.py:1369) and assets.py:265.
  • Adds regression tests covering both the video (master.m3u8 appended) and image (no suffix) paths.

Closes #45.

Test plan

  • pytest apps/api/tests/test_share_video_stream.py — new tests fail before fix, pass after
  • pytest apps/api/tests/ — full suite (54 tests) green
  • Manually verify share link to a video asset plays via HLS in browser

🤖 Generated with Claude Code

The /share/{token} asset overview built stream_url directly from
s3_key_processed, which is the HLS folder prefix for videos — leaving
viewers with a folder URL instead of the playlist. Mirror the existing
fix already applied in get_share_stream_url and assets.py.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ravirajsinh45 ravirajsinh45 self-assigned this Apr 13, 2026
@ravirajsinh45 ravirajsinh45 merged commit bfbbcee into main Apr 13, 2026
4 checks passed
@ravirajsinh45 ravirajsinh45 deleted the fix/share-video-stream-master-m3u8 branch April 13, 2026 05:45
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.

share/{token} endpoint returns folder path instead of master.m3u8 for video stream URLs

1 participant