mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
11 lines
346 B
Rust
11 lines
346 B
Rust
use crate::utils::parse::parse_resolution;
|
|
use crunchyroll_rs::media::Resolution;
|
|
use reqwest::Proxy;
|
|
|
|
pub fn clap_parse_resolution(s: &str) -> Result<Resolution, String> {
|
|
parse_resolution(s.to_string()).map_err(|e| e.to_string())
|
|
}
|
|
|
|
pub fn clap_parse_proxy(s: &str) -> Result<Proxy, String> {
|
|
Proxy::all(s).map_err(|e| e.to_string())
|
|
}
|