refactored stream redirect

This commit is contained in:
euzu
2025-04-19 13:50:41 +02:00
parent f6cdce3cf5
commit b3ccca08a4
7 changed files with 275 additions and 68 deletions
-1
View File
@@ -12,7 +12,6 @@ pub struct RewriteHlsProps<'a> {
pub input_id: u16,
}
fn rewrite_hls_url(input: &str, replacement: &str) -> String {
if replacement.starts_with('/') {
let parts = input.splitn(4, '/').collect::<Vec<&str>>();