Update hydrus-api version

Signed-off-by: trivernis <trivernis@protonmail.com>
main
trivernis 3 years ago
parent f3d99030b8
commit 99109eaca1
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

8
Cargo.lock generated

@ -599,20 +599,22 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
[[package]]
name = "hydrus-api"
version = "0.4.0"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce38cc8d4f48084f33168b7e6366647e3d6528f44ff2b8e5a83168102e88f94f"
checksum = "7f942480c8c8822ad375218bc5247f98f20b056cb3492af746eee8c3ce310a2b"
dependencies = [
"chrono",
"lazy_static",
"log",
"mime",
"regex",
"reqwest 0.11.4",
"serde",
]
[[package]]
name = "hydrus-pixiv-tagger"
version = "0.2.0"
version = "0.3.0"
dependencies = [
"env_logger",
"hydrus-api",

@ -1,6 +1,6 @@
[package]
name = "hydrus-pixiv-tagger"
version = "0.2.0"
version = "0.3.0"
edition = "2018"
license = "Apache-2.0"
description = "Automatically tag hydrus file by using pixiv and saucenao"
@ -12,7 +12,7 @@ repository = "https://github.com/Trivernis/hydrus-pixiv-tagger"
[dependencies]
pixiv-rs = "0.1.0"
hydrus-api = "0.4.0"
hydrus-api = "0.6.0"
rustnao = "0.2"
structopt = "0.3.22"
tempdir = "0.3.7"

@ -59,7 +59,7 @@ async fn main() {
let tags = opt.tags.into_iter().map(Tag::from).collect();
let service = ServiceName(opt.tag_service);
let files = hydrus.search(tags).await.unwrap();
let files = hydrus.search().add_tags(tags).run().await.unwrap();
log::info!("Found {} files", files.len());
let tmpdir = TempDir::new("hydrus-files").unwrap();

Loading…
Cancel
Save