chaturbate bugfix, cut too much away
This commit is contained in:
@@ -187,13 +187,11 @@ impl ChaturbateProvider {
|
|||||||
let username = video_segment
|
let username = video_segment
|
||||||
.get("username")
|
.get("username")
|
||||||
.and_then(|v| v.as_str())
|
.and_then(|v| v.as_str())
|
||||||
.and_then(|s| s.get(2..s.len().saturating_sub(2)))
|
|
||||||
.map(String::from).unwrap();
|
.map(String::from).unwrap();
|
||||||
let video_url: String = format!("{}/{}/", self.url, username);
|
let video_url: String = format!("{}/{}/", self.url, username);
|
||||||
let mut title = video_segment
|
let mut title = video_segment
|
||||||
.get("room_subject")
|
.get("room_subject")
|
||||||
.and_then(|v| v.as_str())
|
.and_then(|v| v.as_str())
|
||||||
.and_then(|s| s.get(2..s.len().saturating_sub(2)))
|
|
||||||
.map(String::from).unwrap_or("".to_string());
|
.map(String::from).unwrap_or("".to_string());
|
||||||
// html decode
|
// html decode
|
||||||
title = decode(title.as_bytes()).to_string().unwrap_or(title);
|
title = decode(title.as_bytes()).to_string().unwrap_or(title);
|
||||||
|
|||||||
Reference in New Issue
Block a user