Skip to content

Commit

Permalink
fix e621 incorrect pool download
Browse files Browse the repository at this point in the history
  • Loading branch information
FerrahWolfeh committed Sep 3, 2023
1 parent d8b53f6 commit f4cb497
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ members = ["ibdl-common", "ibdl-core", "ibdl-extractors"]
[package]
name = "imageboard_downloader"
authors = ["Ferrah Aiko Wolf <[email protected]>"]
version = "1.5.0"
version = "1.5.1"
edition = "2021"
description = "Cli utility to bulk download images from popular imageboard sites (Boorus) using their APIs"
license = "MIT"
Expand Down
8 changes: 7 additions & 1 deletion src/async_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ pub async fn async_path(args: &Cli) -> Result<()> {

let asd = qw.setup_async_downloader(dirname, POST_COUNTER.clone(), channel_rx, length_channel);

let (Ok(removed), Ok(results)) = join!(ext, asd) else {bail!("Failed starting threads!")};
let (Ok(removed), Ok(results)) = join!(ext, asd) else {
bail!("Failed starting threads!")
};

print_results(results?, removed?);

Expand Down Expand Up @@ -99,6 +101,10 @@ async fn search_args_async(
unit.force_extension(ext);
}

if args.pool_id.is_some() {
unit.setup_pool_download(args.pool_id)
}

let client = unit.client();

let ext_thd =
Expand Down

0 comments on commit f4cb497

Please sign in to comment.