mirror of
https://codeberg.org/librarian/stream-proxy
synced 2024-12-06 19:26:34 +01:00
Fix 1080p live streams
This commit is contained in:
+1
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user