mirror of
https://codeberg.org/librarian/stream-proxy
synced 2024-12-06 19:26:34 +01:00
Add replacement for cdn.odysee.live
This commit is contained in:
+2
-1
@@ -8,7 +8,8 @@ fn replace_manifest_urls(text: &str) -> std::string::String {
|
||||
static ref RE: Regex = Regex::new("(?m)^/([0-9]{3}|live)").unwrap();
|
||||
}
|
||||
let new_text = RE.replace_all(text, "/live$0");
|
||||
new_text.replace("https://cloud.odysee.live", "/live")
|
||||
let replaced_text = new_text.replace("https://cloud.odysee.live", "/live");
|
||||
replaced_text.replace("https://cdn.odysee.live", "/live")
|
||||
}
|
||||
|
||||
pub async fn forward_manifest(
|
||||
|
||||
Reference in New Issue
Block a user