Fix 1080p live streams

This commit is contained in:
video-prize-ranch
2022-05-05 20:03:38 -04:00
parent 817df813af
commit fa5751032b
+1 -1
View File
@@ -5,7 +5,7 @@ use bytes::{Bytes};
fn replace_manifest_urls(text: &str) -> std::string::String {
lazy_static! {
static ref RE: Regex = Regex::new("(?m)^/[0-9]{3}").unwrap();
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")