mirror of
https://github.com/lifegpc/pixiv_downloader.git
synced 2026-07-08 01:32:41 +08:00
8
src/opt/crf.rs
Normal file
8
src/opt/crf.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
use json::JsonValue;
|
||||
|
||||
pub fn check_crf(obj: &JsonValue) -> bool {
|
||||
match obj.as_f32() {
|
||||
Some(crf) => crf >= -1f32,
|
||||
None => false,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user