mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Fix resolution ...p parsing
This commit is contained in:
parent
578e5ea5b7
commit
52ee0c48e1
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ pub fn parse_resolution(mut resolution: String) -> Result<Resolution> {
|
||||||
height: u64::MIN,
|
height: u64::MIN,
|
||||||
})
|
})
|
||||||
} else if resolution.ends_with('p') {
|
} else if resolution.ends_with('p') {
|
||||||
let without_p = resolution.as_str()[0..resolution.len() - 2]
|
let without_p = resolution.as_str()[0..resolution.len() - 1]
|
||||||
.parse()
|
.parse()
|
||||||
.map_err(|_| anyhow!("Could not parse resolution"))?;
|
.map_err(|_| anyhow!("Could not parse resolution"))?;
|
||||||
Ok(Resolution {
|
Ok(Resolution {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue