Add replacement for cdn.odysee.live

This commit is contained in:
video-prize-ranch
2022-05-29 15:04:56 -04:00
parent 4143d2156f
commit 62209ca372
+2 -1
View File
@@ -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(