Skip to content

feat: support custom video CDN hosts#1919

Open
Xunflash wants to merge 2 commits into
bggRGjQaUbCoE:mainfrom
Xunflash:cdn-upstream-main
Open

feat: support custom video CDN hosts#1919
Xunflash wants to merge 2 commits into
bggRGjQaUbCoE:mainfrom
Xunflash:cdn-upstream-main

Conversation

@Xunflash

@Xunflash Xunflash commented Apr 30, 2026

Copy link
Copy Markdown

Summary

  • Add support for custom video CDN hosts, inspired by the host override behavior in https://github.com/Kanda-Akihito-Kun/ccb.
  • Replace known media CDN hosts while avoiding API-like hosts, and persist the custom host in settings.
  • Integrate the custom CDN entry at the bottom of the existing CDN selector so no extra settings row is added.

Details

  • Supports entering either a host or a full URL, normalizing it to a host before saving.
  • Custom CDN takes priority for video media URLs; choosing any built-in CDN clears the custom override.
  • The player-side CDN menu and the video settings page share the same selector/result flow.
  • Adds focused tests for host normalization, media CDN replacement, and API-host avoidance.

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