fixed aspect ratio
This commit is contained in:
@@ -267,7 +267,10 @@ impl XfreeProvider {
|
|||||||
.and_then(|v| v.get("aspectRatio"))
|
.and_then(|v| v.get("aspectRatio"))
|
||||||
.and_then(|v| v.as_str())
|
.and_then(|v| v.as_str())
|
||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
.to_string();
|
.to_string()
|
||||||
|
.parse::<f32>()
|
||||||
|
.unwrap_or(0.5625)
|
||||||
|
;
|
||||||
let video_item = VideoItem::new(
|
let video_item = VideoItem::new(
|
||||||
id.to_string(),
|
id.to_string(),
|
||||||
title,
|
title,
|
||||||
|
|||||||
Reference in New Issue
Block a user