fixed warnings
This commit is contained in:
@@ -206,10 +206,10 @@ impl XfreeProvider {
|
|||||||
.to_string();
|
.to_string();
|
||||||
let video_url = format!(
|
let video_url = format!(
|
||||||
"https://cdn.xfree.com/xfree-prod/{}/{}/{}/{}/full.mp4",
|
"https://cdn.xfree.com/xfree-prod/{}/{}/{}/{}/full.mp4",
|
||||||
id.clone().chars().nth(0).unwrap_or('0'),
|
id.chars().nth(0).unwrap_or('0'),
|
||||||
id.clone().chars().nth(1).unwrap_or('0'),
|
id.chars().nth(1).unwrap_or('0'),
|
||||||
id.clone().chars().nth(2).unwrap_or('0'),
|
id.chars().nth(2).unwrap_or('0'),
|
||||||
id.clone()
|
id
|
||||||
);
|
);
|
||||||
|
|
||||||
let listsuffix = post
|
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 views = post.get("viewCount").and_then(|v| v.as_u64()).unwrap_or(0) as u32;
|
||||||
let preview = format!(
|
let preview = format!(
|
||||||
"https://cdn.xfree.com/xfree-prod/{}/{}/{}/{}/listing7.mp4",
|
"https://cdn.xfree.com/xfree-prod/{}/{}/{}/{}/listing7.mp4",
|
||||||
id.clone().chars().nth(0).unwrap_or('0'),
|
id.chars().nth(0).unwrap_or('0'),
|
||||||
id.clone().chars().nth(1).unwrap_or('0'),
|
id.chars().nth(1).unwrap_or('0'),
|
||||||
id.clone().chars().nth(2).unwrap_or('0'),
|
id.chars().nth(2).unwrap_or('0'),
|
||||||
id.clone()
|
id
|
||||||
);
|
);
|
||||||
let duration = post
|
let duration = post
|
||||||
.get("media")
|
.get("media")
|
||||||
|
|||||||
Reference in New Issue
Block a user