This commit is contained in:
Simon
2025-12-27 10:17:23 +00:00
parent ca67eff142
commit e7854ac1ac

View File

@@ -199,12 +199,19 @@ impl SxyprnProvider {
.to_string() .to_string()
.unwrap_or(title) .unwrap_or(title)
.replace(" ", " "); .replace(" ", " ");
title = title.replace(" + ", " ").replace(" ", " "); title = title
.replace("\n", "")
.replace(" + ", " ")
.replace(" ", " ")
.trim().to_string();
if title.to_ascii_lowercase().starts_with("new ") { if title.to_ascii_lowercase().starts_with("new ") {
title = title[4..].to_string(); title = title[4..].to_string();
} }
// println!("Title: {}", title); // println!("Title: {}", title);
let id = video_url.split("/").collect::<Vec<&str>>()[6].split("?").collect::<Vec<&str>>()[0].to_string(); let id = video_url.split("/").collect::<Vec<&str>>()[6]
.split("?")
.collect::<Vec<&str>>()[0]
.to_string();
let thumb = format!( let thumb = format!(
"https:{}", "https:{}",
@@ -271,13 +278,14 @@ impl SxyprnProvider {
url.starts_with("http") url.starts_with("http")
&& !url.starts_with("https://bigwarp.io/") && !url.starts_with("https://bigwarp.io/")
&& !url.starts_with("https://doodstream.com/") && !url.starts_with("https://doodstream.com/")
&& !url.starts_with("https://strmup.to/") && !url.starts_with("https://strmup.")
&& !url.starts_with("https://streamtape.com/") && !url.starts_with("https://streamtape.com/")
&& !url.starts_with("https://streamvid.conetm/")
}) })
.collect::<Vec<String>>(); .collect::<Vec<String>>();
let video_item_url = match stream_urls.first() { let video_item_url = match stream_urls.first() {
Some(u) => u.clone(), Some(u) => u.clone(),
None => format!("https://hottub.spacemoehre.de/proxy/sxyprn/post/{}",id)//video_url.clone(), None => format!("https://hottub.spacemoehre.de/proxy/sxyprn/post/{}", id), //video_url.clone(),
}; };
let mut video_item = VideoItem::new( let mut video_item = VideoItem::new(
id, id,