bugfix with thumbs

This commit is contained in:
Simon
2025-08-15 19:03:15 +00:00
parent 60e3db9a8e
commit 7c645bf653

View File

@@ -221,11 +221,11 @@ impl OkxxxProvider {
.to_string(); .to_string();
let duration = parse_time_to_seconds(&raw_duration).unwrap_or(0) as u32; let duration = parse_time_to_seconds(&raw_duration).unwrap_or(0) as u32;
let thumb = video_segment.split(" class=\"thumb lazy-load\"").collect::<Vec<&str>>()[1] let thumb = format!("https:{}", video_segment.split(" class=\"thumb lazy-load\"").collect::<Vec<&str>>()[1]
.split("data-original=\"").collect::<Vec<&str>>()[1] .split("data-original=\"").collect::<Vec<&str>>()[1]
.split("\"") .split("\"")
.collect::<Vec<&str>>()[0] .collect::<Vec<&str>>()[0]
.to_string(); .to_string());
let mut tags = vec![]; let mut tags = vec![];
if video_segment.contains("href=\"/sites/"){ if video_segment.contains("href=\"/sites/"){