From 99109eaca17d130e83b6d424f6a6c867151d4bde Mon Sep 17 00:00:00 2001 From: trivernis Date: Sun, 5 Sep 2021 11:47:59 +0200 Subject: [PATCH] Update hydrus-api version Signed-off-by: trivernis --- Cargo.lock | 8 +++++--- Cargo.toml | 4 ++-- src/main.rs | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 53130b1..9c0ba7e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/Cargo.toml b/Cargo.toml index bf15d8a..6a2bdf3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/main.rs b/src/main.rs index c998ac7..93a95b2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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();