bugfixes
This commit is contained in:
@@ -199,12 +199,19 @@ impl SxyprnProvider {
|
||||
.to_string()
|
||||
.unwrap_or(title)
|
||||
.replace(" ", " ");
|
||||
title = title.replace(" + ", " ").replace(" ", " ");
|
||||
title = title
|
||||
.replace("\n", "")
|
||||
.replace(" + ", " ")
|
||||
.replace(" ", " ")
|
||||
.trim().to_string();
|
||||
if title.to_ascii_lowercase().starts_with("new ") {
|
||||
title = title[4..].to_string();
|
||||
}
|
||||
// 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!(
|
||||
"https:{}",
|
||||
@@ -271,13 +278,14 @@ impl SxyprnProvider {
|
||||
url.starts_with("http")
|
||||
&& !url.starts_with("https://bigwarp.io/")
|
||||
&& !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://streamvid.conetm/")
|
||||
})
|
||||
.collect::<Vec<String>>();
|
||||
let video_item_url = match stream_urls.first() {
|
||||
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(
|
||||
id,
|
||||
|
||||
Reference in New Issue
Block a user