chaturbate bugfix, cut too much away

This commit is contained in:
Simon
2026-02-13 18:38:22 +00:00
parent 9964c11a8a
commit 4860d6abff

View File

@@ -187,13 +187,11 @@ impl ChaturbateProvider {
let username = video_segment
.get("username")
.and_then(|v| v.as_str())
.and_then(|s| s.get(2..s.len().saturating_sub(2)))
.map(String::from).unwrap();
let video_url: String = format!("{}/{}/", self.url, username);
let mut title = video_segment
.get("room_subject")
.and_then(|v| v.as_str())
.and_then(|s| s.get(2..s.len().saturating_sub(2)))
.map(String::from).unwrap_or("".to_string());
// html decode
title = decode(title.as_bytes()).to_string().unwrap_or(title);