fixed warnings
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user