Skip to content

Conversation

@mtsz-pl
Copy link

@mtsz-pl mtsz-pl commented Nov 19, 2025

Reddit has transitioned from DASH to CMAF video format. This change adds support for both formats to maintain compatibility.

Changes:

  • Update REGEX_URL_VIDEOS to match both DASH and CMAF formats
  • Add format capture group to preserve DASH/CMAF in URL path
  • Add separate proxy endpoints for /vid/:id/dash/:size and /vid/:id/cmaf/:size
  • Update format_url to handle 3-segment video URLs (id/format/size)
  • Update tests to reflect new URL format with format segment

Video URLs now follow pattern: /vid/{id}/{format}/{size}.mp4
Example: /vid/abc123/cmaf/720.mp4

Fixes #503
Fixes #504

Reddit has transitioned from DASH to CMAF video format. This change adds
support for both formats to maintain compatibility.

Changes:
- Update REGEX_URL_VIDEOS to match both DASH and CMAF formats
- Add format capture group to preserve DASH/CMAF in URL path
- Add separate proxy endpoints for /vid/:id/dash/:size and /vid/:id/cmaf/:size
- Update format_url to handle 3-segment video URLs (id/format/size)
- Update tests to reflect new URL format with format segment

Video URLs now follow pattern: /vid/{id}/{format}/{size}.mp4
Example: /vid/abc123/cmaf/720.mp4
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.

🐛 Bug Report: video download problem 🐛 Bug Report: Videos not loading

1 participant