fixed warnings

This commit is contained in:
Simon
2026-03-08 22:26:35 +00:00
parent 9fea043888
commit 4c1815e0fc

View File

@@ -206,10 +206,10 @@ impl XfreeProvider {
.to_string();
let video_url = format!(
"https://cdn.xfree.com/xfree-prod/{}/{}/{}/{}/full.mp4",
id.clone().chars().nth(0).unwrap_or('0'),
id.clone().chars().nth(1).unwrap_or('0'),
id.clone().chars().nth(2).unwrap_or('0'),
id.clone()
id.chars().nth(0).unwrap_or('0'),
id.chars().nth(1).unwrap_or('0'),
id.chars().nth(2).unwrap_or('0'),
id
);
let listsuffix = post
@@ -224,10 +224,10 @@ impl XfreeProvider {
let views = post.get("viewCount").and_then(|v| v.as_u64()).unwrap_or(0) as u32;
let preview = format!(
"https://cdn.xfree.com/xfree-prod/{}/{}/{}/{}/listing7.mp4",
id.clone().chars().nth(0).unwrap_or('0'),
id.clone().chars().nth(1).unwrap_or('0'),
id.clone().chars().nth(2).unwrap_or('0'),
id.clone()
id.chars().nth(0).unwrap_or('0'),
id.chars().nth(1).unwrap_or('0'),
id.chars().nth(2).unwrap_or('0'),
id
);
let duration = post
.get("media")